redirect to about.html
This commit is contained in:
@@ -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");
|
||||
Reference in New Issue
Block a user