💄 Add header anchor in post page. Close #35

This commit is contained in:
elkan1788 2023-04-07 14:17:15 +08:00
parent 726349a2e0
commit 588740f27b

View File

@ -0,0 +1,3 @@
<h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }}
<a class="header-anchor" href="#{{ .Anchor | safeURL }}"></a>
</h{{ .Level }}>