23 lines
1.2 KiB
HTML
23 lines
1.2 KiB
HTML
{{ 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.ByDate.Reverse }}
|
||
<div class="blog-date">{{ .Date.Format "Jan 2, 2006" }}</div>
|
||
<div class="blog-title"><a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a></div>
|
||
{{ range $n, $authorFile := .Params.authors }}
|
||
{{ $author := $.GetPage (printf "/author/%s" $authorFile) }}
|
||
<span class="blog-author"><a href="{{ $author.RelPermalink }}">{{ $author.Title }}</a></span>
|
||
{{ end }}
|
||
{{ end }}
|
||
{{ end }}
|
||
{{ end }}
|