Danila Fedorin
13eeadf6f0
This seems to have an undesired effect when called from a shortcode Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
15 lines
529 B
HTML
15 lines
529 B
HTML
{{- $page := . -}}
|
|
{{ $term := index (.GetTerms "series") 0 }}
|
|
{{ with $term }}
|
|
{{- /* No idea why the 'Reverse' is needed? */ -}}
|
|
{{ $pages := (site.Taxonomies.series.Get .Data.Term).Pages.ByDate.Reverse }}
|
|
<nav id="SeriesNavigation" class="container">
|
|
{{ with $pages.Prev $page }}
|
|
{{ partial "serieslink.html" (dict "direction" "previous" "link" .RelPermalink "page" .) }}
|
|
{{ end }}
|
|
{{ with $pages.Next $page }}
|
|
{{ partial "serieslink.html" (dict "direction" "next" "link" .RelPermalink "page" .) }}
|
|
{{ end }}
|
|
</nav>
|
|
{{ end }}
|