Introducing heti

This commit is contained in:
zhbaor 2022-12-31 12:36:47 +08:00
parent 928734b8e4
commit b19071ee01
3 changed files with 10 additions and 2 deletions

View file

@ -94,3 +94,8 @@ document.addEventListener("scroll", () => {
})
</script>
{{ end }}
<script>
const heti = new Heti('.heti');
heti.autoSpacing();
</script>

View file

@ -55,6 +55,9 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/pangu/4.0.7/pangu.min.js"></script>
{{ end }}
<link rel="stylesheet" href="//unpkg.com/heti/umd/heti.min.css">
<script src="//unpkg.com/heti/umd/heti-addon.min.js"></script>
<!-- website title -->
<title>{{ .Site.Params.title }}</title>

View file

@ -55,7 +55,7 @@
<div style="padding-left: 5px; padding-right: 5px;">
{{/* Main text content */}}
<div class="context">
<div class="context heti">
{{ .Content }}
</div>
@ -125,4 +125,4 @@
</div>
</div>
</div>
</div>