This repository has been archived on 2024-09-02. You can view files and clone it, but cannot push or open issues or pull requests.
hugo-theme-nocolor/layouts/partials/post_meta.html
2019-11-20 19:56:22 +01:00

19 lines
584 B
HTML

<div class="post-meta">
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
{{- .Date.Format (cond (isset $.Site.Params "datefmt") $.Site.Params.datefmt "01-02-2006") -}}
</time>
{{- range $taxo := (slice "Categories" "Series" "Tags") }}
{{- $elems := $.Param $taxo }}
{{- if $elems }}
{{ $taxo }}: &#x5b;
{{- range $name := $elems }}
{{- with $.Site.GetPage (lower (printf "/%s/%s" $taxo (urlize $name))) }}
<a href="{{ .Permalink }}">{{ $name }}</a>
{{- end }}
{{- end }}
&#x5d;
{{- end }}
{{- end }}
</div>