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-05-19 07:54:14 +00:00
|
|
|
{{- $lastCapital := "" }}
|
2023-10-29 15:38:50 +00:00
|
|
|
{{- $terms := slice }}
|
|
|
|
{{- range .Data.Terms }}
|
|
|
|
{{- $terms = $terms | append (dict "Title" (default .Page.Data.Term .Page.Title) "Term" . )}}
|
2023-10-30 22:22:25 +00:00
|
|
|
{{- if not .Page.Title }}
|
|
|
|
{{- warnf "%q: You have not given a 'title' in the frontmatter of your term page, the urlized title will be used instead" .Page.File.Filename }}
|
|
|
|
{{- end }}
|
2023-10-29 15:38:50 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- range sort $terms ".Title" }}
|
|
|
|
{{- $capital := substr .Title 0 1 | upper }}
|
|
|
|
{{- $len := 0 }}
|
|
|
|
{{- range .Term.Pages }}
|
|
|
|
{{- $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 }}
|
|
|
|
{{- if ne $lastCapital $capital }}
|
|
|
|
{{- if ne $lastCapital "" }}
|
|
|
|
</ul>
|
2023-05-19 07:04:44 +00:00
|
|
|
{{- end }}
|
2023-10-29 15:38:50 +00:00
|
|
|
<h2 id="{{ $capital | plainify | anchorize }}">{{ $capital }}</h2>
|
|
|
|
<ul class="columnize">
|
2023-05-19 07:04:44 +00:00
|
|
|
{{- end }}
|
2023-10-29 15:38:50 +00:00
|
|
|
{{- $c:=""}}{{/* display terms of a taxonomy */}}
|
|
|
|
<li><a href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" .Term.Page) }}">{{ .Title }}</a> ({{ $len }})</li>
|
|
|
|
{{- $lastCapital = $capital }}
|
|
|
|
{{- end }}
|
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" . }}
|