github.com/choria-io/go-choria@v0.28.1-0.20240416190746-b3bf9c7d5a45/docs/themes/hugo-theme-relearn/layouts/_default/term.html (about)

     1  {{- partialCached "page-meta.hugo" . .RelPermalink }}
     2  {{- partial "header.html" . }}
     3            <article>
     4              <header class="headline">
     5              </header>
     6  {{- $page := . }}
     7  
     8  {{- $title := partial "pageHelper/title.hugo" (dict "page" .) }}
     9  <h1 id="{{ $title | plainify | anchorize }}">{{ $title }}</h1>
    10  {{- .Content }}
    11  {{- $lastCapital := "" }}
    12  {{- $pages := partialCached "partials/pageHelper/termPages.html" . . }}
    13  {{- range $pages }}
    14    {{- $capital := substr .Title 0 1 | upper }}
    15    {{- if ne $lastCapital $capital }}
    16      {{- if ne $lastCapital "" }}
    17  </ul>
    18      {{- end }}
    19  <h2 id="{{ $capital | plainify | anchorize }}">{{ $capital }}</h2>
    20  <ul class="columnize">
    21    {{- end }}
    22    {{- $c:=""}}{{/* display pages of a term */}}
    23    {{- $breadcrumb := "" }}
    24    {{- if (ne .Page.Site.Params.disableTermBreadcrumbs true) }}
    25      {{- $breadcrumb = (trim ((partial "breadcrumbs.html" (dict "page" .Page "dirOnly" true)) | plainify | htmlUnescape) "\n\r\t ") }}
    26    {{- end }}
    27    <li><a href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" .Page) }}">{{ .Title }}</a>{{ with $breadcrumb }}<div class="breadcrumbs highlightable" title="{{ . }}">{{ . }}</div>{{ end }}</li>
    28    {{- $lastCapital = $capital }}
    29  {{- end }}
    30  {{- if ne $lastCapital "" }}
    31  </ul>
    32  {{- end }}
    33  
    34              <footer class="footline">
    35              </footer>
    36            </article>
    37  {{- partial "footer.html" . }}