hugo-theme-hoogi/layouts/posts/single.html

21 lines
605 B
HTML
Raw Normal View History

2022-01-30 18:03:56 +01:00
{{ define "main" }}
{{ .Scratch.Set "scope" "single" }}
2022-01-30 18:03:56 +01:00
<article>
<header>
2022-02-06 00:01:10 +01:00
<h1>
{{.Title}}
</h1>
<p>
{{ if .Date }} written {{ if .Params.Author }} by {{ .Params.Author }} {{ end }} on
<time>{{ .Date.Format "Jan 2, 2006" }}</time>{{ end }}
{{ if .Params.categories }}
in
{{ range .Params.categories }}
<a href="{{ $.Site.BaseURL }}categories/{{ . | urlize }}">{{ . | humanize }}</a>
{{ end }}
{{ end }}
</p>
2022-01-30 18:03:56 +01:00
</header>
{{ .Content }}
</article>
{{ end }}