site.lyte.dev/layouts/_default/single.html

22 lines
482 B
HTML
Raw Permalink Normal View History

2020-07-14 16:47:54 -05:00
{{ define "title" }}
{{ .Title }} - {{ .Site.Title }}
{{ end }}
{{ define "main" }}
2023-06-26 14:57:21 -05:00
<h2 id="{{ .Title }}"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
2020-07-29 15:27:42 -05:00
{{ with .Lastmod }}
<p>
Posted on {{ dateFormat "Jan 2 2006" . }}
</p>
{{ end }}
{{ if not (isset .Params "toc") }}
2024-05-07 09:08:39 -05:00
<details class="left-border" style="margin-bottom: 2.5em;">
<summary>
<h3>Table of Contents</h3>
</summary>
{{ .TableOfContents }}
</details>
{{ end }}
2020-07-14 16:47:54 -05:00
{{ .Content }}
{{ end }}