mirror of
https://github.com/hyzendust/hyzendust.github.io.git
synced 2026-02-15 00:01:11 +01:00
Fix: remove submodule
This commit is contained in:
11
themes/hugo-theme-yue/layouts/_partials/page/page_nav.html
Normal file
11
themes/hugo-theme-yue/layouts/_partials/page/page_nav.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{{- $pages := where site.RegularPages "Section" "ne" "" -}} {{- /* exclude non-section pages, e.g. /content/about.md */ -}}
|
||||
{{ if or ($pages.Next .) ($pages.Prev .) }}
|
||||
<nav class="page-nav">
|
||||
{{- with $pages.Next . }}
|
||||
<a class="page-nav__previous-link" href="{{ .RelPermalink }}">{{ i18n "previousPage" }}{{.Title}}</a>
|
||||
{{- end }}
|
||||
{{- with $pages.Prev . }}
|
||||
<a class="page-nav__next-link" href="{{ .RelPermalink }}">{{ i18n "nextPage" }}{{.Title}}</a>
|
||||
{{- end }}
|
||||
</nav>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user