tags: sort by name #193

This commit is contained in:
Sören Weber 2022-02-23 15:04:12 +01:00
parent e42f711c23
commit 9b8db59969
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589
5 changed files with 15 additions and 14 deletions

View file

@ -5,16 +5,17 @@
{{- end }}
{{- if or (eq .Kind "taxonomy") (eq .Kind "term") }}
<ul>
{{- range .Pages }}
{{- if and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableTagHiddenPages true) ) }}
{{- range .Data.Terms.Alphabetical }}
{{- if and .Page.Title (or (ne (.Page.Scratch.Get "relearnIsHiddenStem") true) (ne .Page.Site.Params.disableTagHiddenPages true) ) }}
<li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a></li>
{{- end }}
{{- else }}
{{- range sort .Pages "Title" }}
{{- if and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableTagHiddenPages true) ) }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{- end }}
{{- end }}
{{- end }}
</ul>
{{- end }}
<footer class=" footline">
{{- with .Params.LastModifierDisplayName }}
<i class='fas fa-user'></i> <a href="mailto:{{ $.Params.LastModifierEmail }}">{{ . }}</a> {{ with $.Date }} <i class='fas fa-calendar'></i> {{ .Format "02/01/2006" }}{{ end }}
{{- end }}
</footer>
{{- partial "footer.html" . }}

View file

@ -1,9 +1,4 @@
{{- partial "header.html" . }}
{{ partial "content.html" . }}
<footer class="footline">
{{- with .Params.LastModifierDisplayName }}
<i class='fas fa-user'></i> <a href="mailto:{{ $.Params.LastModifierEmail }}">{{ . }}</a> {{ with $.Date }} <i class='fas fa-calendar'></i> {{ .Format "02/01/2006" }}{{ end }}
{{- end }}
</footer>
{{- partial "footer.html" . }}

View file

@ -1,3 +1,8 @@
<footer class=" footline">
{{- with .Params.LastModifierDisplayName }}
<i class='fas fa-user'></i> <a href="mailto:{{ $.Params.LastModifierEmail }}">{{ . }}</a> {{ with $.Date }} <i class='fas fa-calendar'></i> {{ .Format "02/01/2006" }}{{ end }}
{{- end }}
</footer>
{{- if .Params.chapter }}
</div> <!-- end chapter-->
{{- end }}

View file

@ -104,7 +104,7 @@
{{- partial "tags.html" . }}
</div>
{{- if and (not .IsHome) (not .Params.chapter) }}
<h1>{{ if eq .Kind "term" }}{{ .Data.Singular }} :: {{ end }}{{ .Title }}</h1>
<h1>{{ if eq .Kind "term" }}{{ .Data.Singular | humanize }} :: {{ end }}{{ .Title }}</h1>
{{- end }}
{{- define "breadcrumb" }}

View file

@ -1,7 +1,7 @@
{{- if .Params.tags }}
<div class="tags">
{{- range .Params.tags }}
{{- range sort .Params.tags }}
<a class="tag-link" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
{{- end }}
</div>