mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 15:57:57 +00:00
d2d7d808a0
because achretypes caching was unreliable when the whole page was used; Hugo bug or is it just me?
30 lines
No EOL
1.1 KiB
HTML
30 lines
No EOL
1.1 KiB
HTML
{{- partialCached "page-meta.hugo" . .RelPermalink }}
|
|
{{- partial "header.html" . }}
|
|
<article>
|
|
{{- $page := . }}
|
|
|
|
<h1>{{ if eq .Kind "term" }}{{ .Data.Singular | humanize }} {{ default "::" .Site.Params.titleSeparator }} {{ end }}{{ .Title }}</h1>
|
|
<ul>
|
|
{{- range .Data.Terms.Alphabetical }}
|
|
{{- $len := 0 }}
|
|
{{- range .Pages }}
|
|
{{- if and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableTagHiddenPages true) ) }}
|
|
{{- $len = add $len 1 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if $len }}
|
|
<li><a href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" .Page) }}">{{ .Page.Title }}</a> ({{ $len }})</li>
|
|
{{- end }}
|
|
{{- else }}
|
|
{{- range sort .Pages "Title" }}
|
|
{{- if and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableTagHiddenPages true) ) }}
|
|
<li><a href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" .) }}">{{ .Title }}</a></li>
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
</ul>
|
|
|
|
<footer class="footline">
|
|
</footer>
|
|
</article>
|
|
{{- partial "footer.html" . }} |