diff options
Diffstat (limited to 'themes/PaperMod/layouts/partials/post_nav_links.html')
m--------- | themes/PaperMod | 0 | ||||
-rw-r--r-- | themes/PaperMod/layouts/partials/post_nav_links.html | 19 |
2 files changed, 19 insertions, 0 deletions
diff --git a/themes/PaperMod b/themes/PaperMod deleted file mode 160000 -Subproject 3a0a4811cbc07c0bea09ef55b3c1bfb39b48cdd diff --git a/themes/PaperMod/layouts/partials/post_nav_links.html b/themes/PaperMod/layouts/partials/post_nav_links.html new file mode 100644 index 0000000..b988641 --- /dev/null +++ b/themes/PaperMod/layouts/partials/post_nav_links.html @@ -0,0 +1,19 @@ +{{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} +{{- if and (gt (len $pages) 1) (in $pages . ) }} +<nav class="paginav"> + {{- with $pages.Next . }} + <a class="prev" href="{{ .Permalink }}"> + <span class="title">« {{ i18n "prev_page" }}</span> + <br> + <span>{{- .Name -}}</span> + </a> + {{- end }} + {{- with $pages.Prev . }} + <a class="next" href="{{ .Permalink }}"> + <span class="title">{{ i18n "next_page" }} »</span> + <br> + <span>{{- .Name -}}</span> + </a> + {{- end }} +</nav> +{{- end }} |