1{{ define "main" }}
2<div class="wrapper">
3 <article>
4 <div class="frontmatter">
5 <h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
6 <p><strong>Reading Time:</strong> {{ .ReadingTime }} minutes | <strong>Published:</strong> {{ dateFormat "2006-01-02" .Date }} | <strong>Last Edited:</strong> {{ dateFormat "2006-01-02" .Lastmod }}</a></p>
7 <p><strong>Download this post as:</strong> <a href="{{ .Permalink | replaceRE "^[^/]+://[^/]+/(.*)/$" "$1" }}.pdf">PDF,</a> <a href="{{ .Permalink | replaceRE "^[^/]+://[^/]+/(.*)/$" "$1" }}.epub">EPUB,</a> or <a href="{{ .Permalink | replaceRE "^[^/]+://[^/]+/(.*)/$" "$1" }}.txt">plaintext</a></p>
8 </div>
9 {{- if .Params.toc }}
10 <aside id="toc">
11 <div class="toc">
12 <h3 class="toc-title">Table of Contents</h3>
13 {{ .TableOfContents }}
14 </div>
15 </aside>
16 {{- end }}
17 <div class="content">
18 {{ .Content | replaceRE "(<h[1-6] id=\"(.+)\".*>)(.*)(</h[1-6]>)" `${1}${3} <a class="anchor-tag" ariaLabel="Anchor" href="#${2}">¶</a>${4}` | safeHTML }}
19 </div>
20 <hr/>
21 <div class="content"><p>I'm experimenting with comments for a couple of months. This is a self-hosted <a href="https://commento.io/">Commento</a> server, so none of the information entered here goes through any third parties, just my own systems.</p></div>
22 <script defer src="https://commento.secluded.site/js/commento.js"></script>
23 <div id="commento"></div>
24 <hr/>
25 </article>
26</div>
27{{ end }}