aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/docs/post-meta.html
blob: 0b35f1fddfcd9717822e6a2ea6cee90935cb2972 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{{ $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 }}