2023-05-19 09:54:14 +02:00
|
|
|
{{- if eq .Kind "taxonomy" }}
|
|
|
|
<nav id="TableOfContents">
|
|
|
|
<ul>
|
|
|
|
{{- $lastCapital := "" }}
|
|
|
|
{{- range .Data.Terms.Alphabetical }}
|
|
|
|
{{- $capital := substr .Page.Title 0 1 | upper }}
|
|
|
|
{{- if ne $lastCapital $capital }}
|
2023-09-30 21:45:39 +02:00
|
|
|
<li><a href="#{{ $capital | plainify | anchorize }}">{{ $capital }}</a></li>
|
2023-05-19 09:54:14 +02:00
|
|
|
{{- end }}
|
|
|
|
{{- $lastCapital = $capital }}
|
|
|
|
{{- end }}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
{{- else }}
|
|
|
|
{{- partial "shortcodes/piratify.html" (dict
|
2023-07-27 16:14:55 +02:00
|
|
|
"page" .
|
2023-05-19 09:54:14 +02:00
|
|
|
"pagefield" "TableOfContents"
|
|
|
|
) }}
|
2023-09-15 00:23:41 +02:00
|
|
|
{{- end }}
|