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

@ -9,7 +9,12 @@
<div class="page-list">
<ul>
{{ $i := 0 }}
{{ $total := len .Pages }}
{{ range .Paginator.Pages.Reverse }}
{{ $i = add 1 $i }}
{{ .Scratch.Set "series_position" $i }}
{{ .Scratch.Set "series_total" $total }}
<li>{{ .Render "summary/post" }}</li>
{{ else }}
<div>