mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 09:43:06 +00:00
21 lines
No EOL
895 B
HTML
21 lines
No EOL
895 B
HTML
{{- partial "header.html" . }}
|
|
{{- if eq .Kind "section" }}
|
|
|
|
{{ partial "content.html" . }}
|
|
{{- end }}
|
|
{{- if or (eq .Kind "taxonomy") (eq .Kind "term") }}
|
|
<ul>
|
|
{{- 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> ({{ len .Pages }})</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 }}
|
|
{{- partial "footer.html" . }} |