2023-05-19 07:04:44 +00:00
|
|
|
{{- partialCached "page-meta.hugo" . .RelPermalink }}
|
|
|
|
{{- partial "header.html" . }}
|
|
|
|
<article>
|
2023-05-19 18:44:19 +00:00
|
|
|
<header class="headline">
|
|
|
|
</header>
|
2023-05-19 07:04:44 +00:00
|
|
|
{{- $page := . }}
|
|
|
|
|
2023-11-03 21:50:02 +00:00
|
|
|
{{- $title := default (default .Data.Plural (i18n .Data.Plural)) .Title }}
|
2023-09-30 19:45:39 +00:00
|
|
|
<h1 id="{{ $title | plainify | anchorize }}">{{ $title }}</h1>
|
2023-11-03 21:50:23 +00:00
|
|
|
{{- .Content }}
|
2023-05-19 07:54:14 +00:00
|
|
|
{{- $lastCapital := "" }}
|
2023-11-03 22:11:00 +00:00
|
|
|
{{- $pages := slice }}
|
2023-10-29 15:38:50 +00:00
|
|
|
{{- range .Data.Terms }}
|
|
|
|
{{- $len := 0 }}
|
2023-11-03 22:11:00 +00:00
|
|
|
{{- range .Pages }}
|
2023-10-29 15:38:50 +00:00
|
|
|
{{- $c:=""}}{{/* count pages of term */}}
|
|
|
|
{{- if and .Title .RelPermalink (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableTagHiddenPages true) ) }}
|
|
|
|
{{- $len = add $len 1 }}
|
2023-05-19 07:54:14 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2023-10-29 15:38:50 +00:00
|
|
|
{{- if $len }}
|
2023-11-28 21:45:38 +00:00
|
|
|
{{- $pages = $pages| append (dict "Title" (default (humanize .Page.Data.Term | strings.Title) .Page.Title) "Page" . "Len" $len )}}
|
2023-11-03 23:37:24 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- if not .Page.Title }}
|
|
|
|
{{- warnf "%q: You have not given a 'title' in the frontmatter of your term page, the humanized term will be used instead" .Page.File.Filename }}
|
2023-11-03 22:11:00 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- range sort $pages ".Title" }}
|
|
|
|
{{- $capital := substr .Title 0 1 | upper }}
|
|
|
|
{{- if ne $lastCapital $capital }}
|
|
|
|
{{- if ne $lastCapital "" }}
|
2023-10-29 15:38:50 +00:00
|
|
|
</ul>
|
2023-11-03 22:11:00 +00:00
|
|
|
{{- end }}
|
2023-10-29 15:38:50 +00:00
|
|
|
<h2 id="{{ $capital | plainify | anchorize }}">{{ $capital }}</h2>
|
|
|
|
<ul class="columnize">
|
|
|
|
{{- end }}
|
2023-11-03 22:11:00 +00:00
|
|
|
{{- $c:=""}}{{/* display terms of a taxonomy */}}
|
2023-11-03 22:31:49 +00:00
|
|
|
<li><a href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" .Page.Page) }}">{{ .Title }}</a> ({{ .Len }})</li>
|
2023-11-03 22:11:00 +00:00
|
|
|
{{- $lastCapital = $capital }}
|
2023-05-19 07:54:14 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- if ne $lastCapital "" }}
|
2023-05-19 10:59:06 +00:00
|
|
|
</ul>
|
2023-05-19 07:54:14 +00:00
|
|
|
{{- end }}
|
2023-05-19 07:04:44 +00:00
|
|
|
|
|
|
|
<footer class="footline">
|
|
|
|
</footer>
|
|
|
|
</article>
|
|
|
|
{{- partial "footer.html" . }}
|