feat: improve tag list display

This commit is contained in:
2026-02-22 11:32:38 +01:00
parent 58feb7692d
commit 45b18330b5

View File

@@ -11,7 +11,7 @@
<div class="container archive"> <div class="container archive">
<!-- Page Title --> <!-- Page Title -->
{{- if $selection }} {{- if $selection }}
<h1>{{ (printf "Everything from %s \"%s\"" (.Data.Singular | humanize) (humanize .Title)) | markdownify }}</h1> <h1>{{ (printf "Everything from %s \"%s\"" (.Data.Singular | humanize) .Title) | markdownify }}</h1>
{{- else }} {{- else }}
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
{{- end }} {{- end }}
@@ -53,11 +53,10 @@
</div> </div>
<div class="col-xs-9 col-md-10"> <div class="col-xs-9 col-md-10">
<a class="label label-success {{if not $selection}}active{{end}}" href="/blog">All</a> <a class="label label-success {{if not $selection}}active{{end}}" href="/blog">All</a>
{{ range $name, $taxonomy := .Site.Taxonomies.tags }} {{ $tags := site.GetPage "/tags" }}
<a class="label label-success {{if eq $name $.Title}}active{{end}}" href="{{ "/tags/" | relLangURL }}{{ $name | urlize }}"> {{ range sort $tags.Pages "Title" "asc"}}
{{- humanize $name -}} <a href="{{ .RelPermalink }}" class="label label-success {{if eq .LinkTitle $.Title}}active{{end}}">{{ .LinkTitle }}</a>
</a> {{ end }}
{{- end -}}
</div> </div>
</div> </div>
<div class="row vertical-align"> <div class="row vertical-align">