21 lines
458 B
HTML
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">⌗</a> ${3}` | safeHTML }}
|
|
|
|
</article>
|
|
|
|
</main>
|
|
{{ partial "posts_pagination.html" . }}
|
|
{{ end }}
|