2023-12-13 21:47:26 +03:00
|
|
|
{{ define "main" }}
|
|
|
|
<main>
|
|
|
|
<article>
|
2024-06-15 21:47:06 +03:00
|
|
|
|
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>
|
2024-06-15 21:47:06 +03:00
|
|
|
|
2023-12-13 21:47:26 +03:00
|
|
|
<aside>
|
|
|
|
{{ .TableOfContents }}
|
|
|
|
</aside>
|
2024-07-02 20:59:39 +03:00
|
|
|
|
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">⌗</a> ${3}` | safeHTML }}
|
|
|
|
|
2024-06-15 21:47:06 +03:00
|
|
|
</article>
|
|
|
|
|
2023-12-13 21:47:26 +03:00
|
|
|
</main>
|
2024-07-15 20:10:14 +03:00
|
|
|
{{ partial "posts_pagination.html" . }}
|
2023-12-13 21:47:26 +03:00
|
|
|
{{ end }}
|