Merge branch 'main' into gdpr-consent

This commit is contained in:
Emruz Hossain 2021-06-20 20:19:11 +06:00 committed by GitHub
commit 244147ae05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,11 @@
{{ $nextPage := "" }}
<!-- List all the pages. It uses the sidebar menu to discover the page order. -->
{{ $pages := partial "helpers/get-pages.html" site.Menus.sidebar }}
{{ $pages := slice }}
{{ if isset site "Menus" }}
{{ $pages = partial "helpers/get-pages.html" site.Menus.sidebar }}
{{ end }}
<!-- Now, find the current page index in the pages list. Then, find previous page and next page. -->
{{ $idx := 0 }}