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 := . -}} {{- $page := . -}}
{{ $term := index (.GetTerms "series") 0 }} {{- $term := index (.GetTerms "series") 0 -}}
{{ with $term }} {{- with $term -}}
{{- /* No idea why the 'Reverse' is needed? */ -}} {{- /* 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"> <nav class="series-navigation">
{{ with $pages.Prev $page }} {{- with $pages.Prev $page -}}
{{ partial "serieslink.html" (dict "direction" "previous" "link" .RelPermalink "page" .) }} {{- partial "serieslink.html" (dict "direction" "previous" "link" .RelPermalink "page" .) -}}
{{ end }} {{- end -}}
{{ with $pages.Next $page }} {{- with $pages.Next $page -}}
{{ partial "serieslink.html" (dict "direction" "next" "link" .RelPermalink "page" .) }} {{- partial "serieslink.html" (dict "direction" "next" "link" .RelPermalink "page" .) -}}
{{ end }} {{- end -}}
</nav> </nav>
{{ end }} {{- end -}}