sadium/layouts/_default/single.html

22 lines
430 B
HTML
Raw Normal View History

2023-12-13 21:47:26 +03:00
{{ define "main" }}
<main>
2024-08-08 12:35:07 +03:00
{{ partial "opengraph.html" . }}
2023-12-13 21:47:26 +03:00
<article>
2023-12-13 21:47:26 +03:00
<header>
2024-08-05 22:27:03 +03:00
<h1 class="post-title">
2024-07-20 16:48:23 +03:00
{{ .Title }}
2024-07-20 14:10:00 +03:00
</h1>
2023-12-13 21:47:26 +03:00
</header>
2023-12-13 21:47:26 +03:00
<aside>
{{ .TableOfContents }}
</aside>
2024-07-20 14:10:00 +03:00
{{ .Content | replaceRE "(<h[1-9] id=\"([^\"]+)\".+)(</h[1-9]+>)" `${1}<a href="#${2}" class="hanchor" ariaLabel="Anchor">&#8983;</a> ${3}` | safeHTML }}
</article>
2023-12-13 21:47:26 +03:00
</main>
{{ end }}