1
0
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:
Harvey Tindall 2022-01-10 00:46:01 +00:00
parent 6448a7db9e
commit 8758d74e32
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2

View File

@ -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("&lt;!--", "{{");
out = out.replaceAll("--&gt;", "}}");
fs.writeFileSync(outfile, out); fs.writeFileSync(outfile, out);
console.log(infile, outfile); console.log(infile, outfile);
}; };