2023-05-19 07:54:14 +00: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 19:45:39 +00:00
|
|
|
<li><a href="#{{ $capital | plainify | anchorize }}">{{ $capital }}</a></li>
|
2023-05-19 07:54:14 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- $lastCapital = $capital }}
|
|
|
|
{{- end }}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
{{- else }}
|
|
|
|
{{- partial "shortcodes/piratify.html" (dict
|
2023-07-27 14:14:55 +00:00
|
|
|
"page" .
|
2023-05-19 07:54:14 +00:00
|
|
|
"pagefield" "TableOfContents"
|
|
|
|
) }}
|
2023-09-14 22:23:41 +00:00
|
|
|
{{- end }}
|