2024-06-19 22:17:43 -07:00
|
|
|
{{- $page := . -}}
|
2024-06-26 19:35:23 -07:00
|
|
|
{{- $term := index (.GetTerms "series") 0 -}}
|
|
|
|
{{- with $term -}}
|
2024-06-19 21:56:00 -07:00
|
|
|
{{- /* No idea why the 'Reverse' is needed? */ -}}
|
2024-06-26 19:35:23 -07:00
|
|
|
{{- $pages := (site.Taxonomies.series.Get .Data.Term).Pages.ByDate.Reverse -}}
|
2024-06-19 22:28:49 -07:00
|
|
|
<nav class="series-navigation">
|
2024-06-26 19:35:23 -07:00
|
|
|
{{- with $pages.Prev $page -}}
|
2024-06-26 19:48:55 -07:00
|
|
|
{{- partial "serieslink.html" (dict "direction" "previous" "page" .) -}}
|
2024-06-26 19:35:23 -07:00
|
|
|
{{- end -}}
|
2024-06-26 19:48:55 -07:00
|
|
|
{{- $nextPage := $pages.Next $page -}}
|
|
|
|
{{- if $nextPage -}}
|
|
|
|
{{- partial "serieslink.html" (dict "direction" "next" "page" $nextPage) -}}
|
|
|
|
{{- else if eq $term.Params.status "ongoing" -}}
|
|
|
|
{{- partial "serieslinkplaceholder.html" (dict "direction" "next") -}}
|
2024-06-26 19:35:23 -07:00
|
|
|
{{- end -}}
|
2024-06-19 21:56:00 -07:00
|
|
|
</nav>
|
2024-06-26 19:35:23 -07:00
|
|
|
{{- end -}}
|