mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 10:50:24 +00:00
tags: sort by name #193
This commit is contained in:
parent
e42f711c23
commit
9b8db59969
5 changed files with 15 additions and 14 deletions
|
@ -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" . }}
|
|
@ -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" . }}
|
|
@ -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 }}
|
||||
|
|
|
@ -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" }}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue