contrast-hugo/layouts/_default/single.html

16 lines
470 B
HTML
Raw Normal View History

2019-07-15 09:04:11 -04:00
{{ define "main" }}
<article>
<header>
2019-12-21 16:27:34 -05:00
{{ 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>
2020-01-20 17:14:54 -05:00
{{ if .Date }}<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "January 02, 2006" }}</time>{{ end }}
2019-07-15 09:04:11 -04:00
</header>
{{ .Content }}
</article>
2019-07-18 17:01:53 -04:00
{{ end }}