Remove unused whitespace in seriesnav.html

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
Danila Fedorin 2024-06-26 19:35:23 -07:00
parent 7c085b4d39
commit a5cda19e5e

View File

@ -1,14 +1,14 @@
{{- $page := . -}}
{{ $term := index (.GetTerms "series") 0 }}
{{ with $term }}
{{- $term := index (.GetTerms "series") 0 -}}
{{- with $term -}}
{{- /* No idea why the 'Reverse' is needed? */ -}}
{{ $pages := (site.Taxonomies.series.Get .Data.Term).Pages.ByDate.Reverse }}
{{- $pages := (site.Taxonomies.series.Get .Data.Term).Pages.ByDate.Reverse -}}
<nav class="series-navigation">
{{ 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 }}
{{- 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 }}
{{- end -}}