abdullahtarawneh.com/layouts/partials/page/series-nav.html

21 lines
465 B
HTML
Raw Normal View History

2024-06-03 12:39:43 +00:00
{{ with .GetTerms "series" }}
<h2>More in the same series:</h2>
{{ range . }}
<nav>
<h3>{{ .Title }}</h3>
<ol>
{{ range .Pages.ByDate }}
{{ if eq .File.UniqueID $.File.UniqueID }}
<li class="active">
<a href="{{ .Permalink }}" aria-current="page">{{ .Title }}</a>
</li>
{{ else }}
<li>
<a href="{{ .Permalink }}">{{ .Title }}</a>
</li>
{{ end }}
{{ end }}
</ol>
</nav>
{{ end }}
{{ end }}