redirect to about.html

This commit is contained in:
NAS\NASPC
2026-06-01 16:45:26 +07:00
parent 8dad4fd45b
commit 66aaefebe9
32 changed files with 13022 additions and 266 deletions
+9
View File
@@ -0,0 +1,9 @@
const fs = require('fs');
const indexPath = 'd:\\website_sisvietnam_moi\\website_sisvietnam.vn\\sisvietnamvn\\src\\main\\resources\\templates\\index.html';
let indexHtml = fs.readFileSync(indexPath, 'utf8');
indexHtml = indexHtml.replace(/<footer id="l--main-footer"[\s\S]*?<\/footer>/i, '<footer th:replace="~{fragments/footer :: footer}"></footer>');
fs.writeFileSync(indexPath, indexHtml, 'utf8');
console.log("Replaced footer in index.html");