mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 09:00:10 +00:00
fix titles for some pages
This commit is contained in:
parent
6448a7db9e
commit
8758d74e32
@ -62,6 +62,8 @@ function fixHTML(infile, outfile) {
|
|||||||
let s = templateStrings[i].replace(/\\/g, '');
|
let s = templateStrings[i].replace(/\\/g, '');
|
||||||
out = out.replaceAll("<!--" + s.slice(3).slice(0, -3) + "-->", s);
|
out = out.replaceAll("<!--" + s.slice(3).slice(0, -3) + "-->", s);
|
||||||
}
|
}
|
||||||
|
out = out.replaceAll("<!--", "{{");
|
||||||
|
out = out.replaceAll("-->", "}}");
|
||||||
fs.writeFileSync(outfile, out);
|
fs.writeFileSync(outfile, out);
|
||||||
console.log(infile, outfile);
|
console.log(infile, outfile);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user