refractor code

This commit is contained in:
FarseaSH 2023-04-09 18:19:44 +08:00
parent e91d459aa4
commit 6f79007058
3 changed files with 5 additions and 6 deletions

View file

@ -81,7 +81,7 @@
}).then((html_string) => {
const parser = new DOMParser();
const next_page = parser.parseFromString(html_string, "text/html");
{{ if .Site.Params.heti }}
{{ if .Site.Params.features.heti }}
const heti = new Heti(next_page);
heti.autoSpacing();
{{ end }}
@ -103,7 +103,7 @@
{{ end }}
{{ if .Site.Params.heti }}
{{ if .Site.Params.features.heti }}
<script>
const heti = new Heti(document);
heti.autoSpacing();