Fix double-used navigation ID and odd centering issue

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
Danila Fedorin 2024-06-19 22:28:49 -07:00
parent 13eeadf6f0
commit 9abee96bd2
3 changed files with 4 additions and 2 deletions

View File

@ -346,7 +346,7 @@ figure {
} }
} }
#SeriesNavigation { .series-navigation {
margin-top: 1em; margin-top: 1em;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;

View File

@ -27,7 +27,9 @@
</div> </div>
{{- end -}} {{- end -}}
{{- define "after" -}} {{- define "after" -}}
<div class="container">
{{- partial "seriesnav.html" . -}} {{- partial "seriesnav.html" . -}}
</div>
<hr class="container footer-divider"> <hr class="container footer-divider">
<footer class="container"> <footer class="container">
<p>{{ i18n "contactFooter" | safeHTML }}</p> <p>{{ i18n "contactFooter" | safeHTML }}</p>

View File

@ -3,7 +3,7 @@
{{ 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 id="SeriesNavigation" class="container"> <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 }}