hugo-md/layouts/partials/music.html

35 lines
1.2 KiB
HTML

{{ $dateFormat := default "02.01.2006, 15:04 Uhr" (index .Site.Params "datefmt") }}
<header>
<h1>{{- .Title | markdownify -}}</h1>
{{/* Display the date if set */}}
{{- if not .Date.IsZero -}}
<p><small>
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format $dateFormat }}</time>{{ $taxo := "categories" }}
{{ with .Param $taxo }} in
{{ range $index, $categories := . }}
{{- if gt $index 0 }}, {{ end -}}
{{ with $.Site.GetPage ((printf "/%s/%s" $taxo ($categories))) -}}
<a href="{{ .Permalink }}">{{ $categories }}</a>
{{- end -}}
{{- end -}}
{{ end }}
</small></p>
{{- end -}}
<p><small><strong>Note:</strong> YouTube cookies are only set after clicking on the Start button. &#9757;&#65039;</small></p>
</header>
<article>
{{ .Content }}
</article>
<p><small>
{{ $taxo := "tags" }} <!-- Ab hier Plural -->
{{ with .Param $taxo }}
<strong>Tag{{ if gt (len .) 1 }}s{{ end }}:</strong>
{{ range $index, $tags := . }}
{{- if gt $index 0 }}, {{ end -}}
{{ with $.Site.GetPage ((printf "/%s/%s" $taxo ($tags))) -}}
<a href="{{ .Permalink }}">{{ $tags }}</a>
{{- end -}}
{{- end -}}
{{ end }}</small></p>