2023-02-08 21:17:27 +00:00
|
|
|
<div class="default-animation progress">
|
2023-02-09 23:34:47 +00:00
|
|
|
<div class="toc-wrapper">
|
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 }}
|
|
|
|
<li><a href="#{{ $capital | anchorize }}">{{ $capital }}</a></li>
|
|
|
|
{{- end }}
|
|
|
|
{{- $lastCapital = $capital }}
|
|
|
|
{{- end }}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
{{- else }}
|
|
|
|
{{- partial "shortcodes/piratify.html" (dict
|
|
|
|
"context" .
|
|
|
|
"pagefield" "TableOfContents"
|
|
|
|
) }}
|
|
|
|
{{- end }}
|
2023-02-08 21:17:27 +00:00
|
|
|
</div>
|
|
|
|
</div>
|