hugo-book-theme/layouts/partials/docs/post-meta.html

17 lines
478 B
HTML
Raw Normal View History

{{ $dateFormat := (default "January 2, 2006" .Site.Params.BookDateFormat) }}
2019-12-19 17:22:12 +01:00
{{ with .Date}}
<h5>{{ .Format $dateFormat }}</h5>
{{ end }}
{{ range $term, $_ := .Site.Taxonomies }}
{{ with $list := $.Param $term }}
2020-01-17 21:31:26 +01:00
<div>
{{ range $n, $single := $list }}{{ if $n }}, {{ end }}
{{- with $.Site.GetPage (printf "/%s/%s" $term $single | urlize) }}
2020-01-17 21:31:26 +01:00
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{- end }}
2019-12-19 17:22:12 +01:00
{{- end }}
2020-01-17 21:31:26 +01:00
</div>
2019-12-19 17:22:12 +01:00
{{ end }}
{{ end }}