1
0
Fork 0
ejv2.cc/themes/risotto/layouts/_default/single.html
Ethan Marshall 5da2f358e9
Clean up and improve some layouts
Adds tags and category shows to single pages.
Adds dates to list pages.
2024-08-02 00:33:05 +01:00

44 lines
1 KiB
HTML

{{ define "main" }}
<header class="content__header">
<h1>{{ .Title | markdownify }}</h1>
</header>
<div class="content__body">
{{ .Content }}
</div>
<footer class="content__footer"></footer>
{{ end }}
{{define "aside" }}
{{ if .Params.description }}<p>{{ .Params.description }}</p>{{ end }}
{{ if .Params.date }}
<p>
{{ if .Date }}<strong>First Published</strong> {{ .Date.Format "2006-01-02" }}{{ end }}
</p>
{{ end }}
{{if .Params.categories }}
<p>
<strong>Categories: [</strong>
{{ range .Params.categories }}
<a href="/categories/{{ . }}">{{ . }}</a>
{{ end }}
<strong>]</strong>
</p>
{{ end }}
{{if .Params.tags }}
<p>
<strong>Tags: [</strong>
{{ range .Params.tags }}
<a href="/tags/{{ . }}">{{ . }}</a>
{{ end }}
<strong>]</strong>
</p>
{{ end }}
{{ if and (.Params.toc) (.TableOfContents) }}
<hr>
On this page:
{{ .TableOfContents }}
{{ end }}
{{ end }}