hugo-book-theme/layouts/partials/docs/post-meta.html
2020-02-23 13:26:51 +01:00

16 lines
478 B
HTML

{{ $dateFormat := (default "January 2, 2006" .Site.Params.BookDateFormat) }}
{{ with .Date}}
<h5>{{ .Format $dateFormat }}</h5>
{{ end }}
{{ range $term, $_ := .Site.Taxonomies }}
{{ with $list := $.Param $term }}
<div>
{{ range $n, $single := $list }}{{ if $n }}, {{ end }}
{{- with $.Site.GetPage (printf "/%s/%s" $term $single | urlize) }}
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{- end }}
{{- end }}
</div>
{{ end }}
{{ end }}