sadium/layouts/_default/single.html
2024-08-05 22:27:03 +03:00

21 lines
437 B
HTML

{{ define "main" }}
<main>
<article>
<header>
<h1 class="post-title">
{{ .Title }}
</h1>
</header>
<aside>
{{ .TableOfContents }}
</aside>
{{ .Content | replaceRE "(<h[1-9] id=\"([^\"]+)\".+)(</h[1-9]+>)" `${1}<a href="#${2}" class="hanchor" ariaLabel="Anchor">&#8983;</a> ${3}` | safeHTML }}
</article>
</main>
{{ partial "posts_pagination.html" . }}
{{ end }}