Show page position in series on series taxonomy pages

Fix #40
This commit is contained in:
2021-11-23 13:14:44 -06:00
parent 161c68d16c
commit 55bbfa90e4
4 changed files with 46 additions and 1 deletions

View File

@@ -28,8 +28,13 @@
<div class="series-pages">
<ul>
{{ $i := 0 }}
{{ $total := len .Data.Pages }}
{{ range .Data.Pages.Reverse }}
<li>{{ .Render "summary/post" }}</li>
{{ $i = add 1 $i }}
{{ .Scratch.Set "series_position" $i }}
{{ .Scratch.Set "series_total" $total }}
<li>{{ .Render "summary/series_post" }}</li>
{{ end }}
</ul>
</div>