site.lyte.dev/layouts/_default/single.html
2024-05-07 09:08:39 -05:00

22 lines
482 B
HTML

{{ define "title" }}
{{ .Title }} - {{ .Site.Title }}
{{ end }}
{{ define "main" }}
<h2 id="{{ .Title }}"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
{{ with .Lastmod }}
<p>
Posted on {{ dateFormat "Jan 2 2006" . }}
</p>
{{ end }}
{{ if not (isset .Params "toc") }}
<details class="left-border" style="margin-bottom: 2.5em;">
<summary>
<h3>Table of Contents</h3>
</summary>
{{ .TableOfContents }}
</details>
{{ end }}
{{ .Content }}
{{ end }}