24 lines
1.1 KiB
HTML
24 lines
1.1 KiB
HTML
|
{{/*
|
|||
|
ANY EDIT
|
|||
|
(07.11.23) - Removed Author and Date from Keyword taxonomy list (/keywords/). Pages provided by reverse date
|
|||
|
(01.11.24) - Pages in Keyword list sorted in alphabetic order (not .ByDate.Reverse, but .ByTitle)
|
|||
|
*/}}
|
|||
|
{{ define "keywords" }}
|
|||
|
{{ $p := split (trim .RelPermalink "/") "/" }}
|
|||
|
{{ if eq (len $p) 1 }}
|
|||
|
<div class="coretitle"><span class="supt">{{ index $p 0 }}⁄</span>All</div>
|
|||
|
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies }}
|
|||
|
{{ if eq (index $p 0) $taxonomyname }}
|
|||
|
{{ range $key, $value := $taxonomy }}
|
|||
|
<span> <a href="/{{ index $p 0 }}/{{ $key }}/{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ $key }}</a>({{ len (index (index $.Site.Taxonomies $taxonomyname) $key) }})</span>
|
|||
|
{{ end }}
|
|||
|
{{ end }}
|
|||
|
{{ end }}
|
|||
|
{{ else }}
|
|||
|
<div class="coretitle"><span class="supt">{{ index $p 0 }}⁄</span>{{ index $p 1 }}</div>
|
|||
|
{{ range .Pages.ByTitle }}
|
|||
|
<div class="blog-title"><a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a></div>
|
|||
|
{{ end }}
|
|||
|
{{ end }}
|
|||
|
{{ end }}
|