contrast-hugo/layouts/_default/single.html
Niklas Buschmann 785926dac7 merge upstream
2020-01-20 23:14:54 +01:00

16 lines
470 B
HTML

{{ define "main" }}
<article>
<header>
{{ range $index, $tag := .Params.categories }}
{{- if gt $index 0 }}, {{ end -}}
<a href="{{ ($.Site.GetPage (printf "/%s/%s" "categories" $tag)).Permalink }}">{{ $tag | upper }}</a>
{{- end -}}
<h1>{{ .Title }}</h1>
{{ if .Date }}<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "January 02, 2006" }}</time>{{ end }}
</header>
{{ .Content }}
</article>
{{ end }}