1
0
mirror of https://github.com/PrivSec-dev/privsec.dev synced 2024-11-17 12:01:35 -05:00

Fix navbar prev/next links (#23)

This commit is contained in:
Wonderfall 2022-07-23 00:15:36 +02:00 committed by tommytran732
parent b7f8b4e856
commit 00241b9687
No known key found for this signature in database
GPG Key ID: 060B29EB996BD9F2
2 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,8 @@
.paginav {
background: none;
border: none;
}
.paginav a:hover {
background: none;
}

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 . }}