sadium/layouts/_default/single.html
Артём 835fa0ae0a
Some checks failed
/ site (push) Failing after 0s
Наводим марафет
2024-07-20 14:10:00 +03:00

21 lines
458 B
HTML

{{ define "main" }}
<main>
<article>
<header>
<h1 class="post-title">
<a>{{ .Title | markdownify }}</a>
</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 }}