1
0
mirror of https://github.com/PrivSec-dev/privsec.dev synced 2025-02-20 18:31:35 -05:00

fix navbar prev/next links

This commit is contained in:
Wonderfall 2022-07-22 15:39:19 +02:00
parent f3e2c3e801
commit 30ad814c62

View File

@ -1,4 +1,4 @@
{{- $pages := where site.RegularPages.ByTitle "Type" "in" site.Params.mainSections }}
{{- $pages := .CurrentSection.RegularPages.ByTitle }}
{{- if and (gt (len $pages) 1) (in $pages . ) }}
<nav class="paginav">
{{- with $pages.Next . }}