hugo-theme-relearn/layouts/_default/list.html

21 lines
895 B
HTML
Raw Normal View History

{{- partial "header.html" . }}
{{- if eq .Kind "section" }}
{{ partial "content.html" . }}
{{- end }}
{{- if or (eq .Kind "taxonomy") (eq .Kind "term") }}
<ul>
2022-02-23 14:04:12 +00:00
{{- range .Data.Terms.Alphabetical }}
{{- if and .Page.Title (or (ne (.Page.Scratch.Get "relearnIsHiddenStem") true) (ne .Page.Site.Params.disableTagHiddenPages true) ) }}
2022-02-23 15:09:17 +00:00
<li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a> ({{ len .Pages }})</li>
2022-02-23 14:04:12 +00:00
{{- 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>
2022-02-23 14:04:12 +00:00
{{- end }}
{{- end }}
{{- end }}
</ul>
{{- end }}
{{- partial "footer.html" . }}