sadium/layouts/_default/single.html
Артём 80704ad003
All checks were successful
/ site (push) Successful in 2s
Фикс заголовков
2024-07-20 16:48:23 +03:00

21 lines
418 B
HTML

{{ define "main" }}
<main>
<article>
<header>
<h1>
{{ .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 }}