HermitCollective.nix/sites/blog.hermitcollective.net/blog/themes/hugo-simple/layouts/_default/single.html

29 lines
669 B
HTML
Raw Normal View History

2024-03-14 11:40:21 +00:00
{{ define "main" }}
{{ if eq .Type "blog" }}
{{ if not .Params.menu }}
<!-- <h1>{{ .Title }}</h1> -->
<p>
<i>
<time datetime="{{ .Date.Format "2006-01-02" }}" pubdate>
{{ .Date.Format (default "2006-01-02" .Site.Params.dateFormat) }}
</time>
</i>
</p>
{{ end }}
{{ end }}
{{ if .Params.toc }}
<details>
<summary>Table of Contents</summary>
{{ .TableOfContents }}
</details>
{{ end }}
<content>
{{ .Content }}
</content>
<p>
{{ range (.GetTerms "tags") }}
<a href="{{ .Permalink }}">#{{ .LinkTitle }}</a>&nbsp;&nbsp;
{{ end }}
</p>
{{ end }}