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

21 lines
636 B
HTML
Raw Normal View History

2019-11-20 19:56:22 +01:00
<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") -}}
2019-11-24 00:18:51 +01:00
</time>;
2019-11-20 19:56:22 +01:00
{{- range $taxo := (slice "Categories" "Series" "Tags") }}
{{- $elems := $.Param $taxo }}
{{- if $elems }}
2019-11-20 23:23:16 +01:00
<span class="{{ (lower $taxo) }}">
{{ $taxo }}: &#x5b;
2019-11-20 19:56:22 +01:00
{{- range $name := $elems }}
2019-11-20 23:23:16 +01:00
{{- with $.Site.GetPage (lower (printf "/%s/%s" $taxo (urlize $name))) }}
<a href="{{ .Permalink }}">{{ $name }}</a>
2019-11-20 19:56:22 +01:00
{{- end }}
2019-11-20 23:23:16 +01:00
{{- end }}
&#x5d;
</span>
{{- end }}
2019-11-20 19:56:22 +01:00
{{- end }}
</div>