From eabba71aaff7cf0b7d642927ce6bdbcb4db7e84c Mon Sep 17 00:00:00 2001 From: Wonderfall Date: Thu, 21 Jul 2022 02:43:54 +0200 Subject: [PATCH] also sort navigation links (#13) --- layouts/partials/post_nav_links.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 layouts/partials/post_nav_links.html diff --git a/layouts/partials/post_nav_links.html b/layouts/partials/post_nav_links.html new file mode 100644 index 0000000..eb7f2b9 --- /dev/null +++ b/layouts/partials/post_nav_links.html @@ -0,0 +1,19 @@ +{{- $pages := where site.RegularPages.ByTitle "Type" "in" site.Params.mainSections }} +{{- if and (gt (len $pages) 1) (in $pages . ) }} + +{{- end }} \ No newline at end of file