From df24472ca34742b26de39174d5e4067b3b6bfb8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Romanowski?= Date: Thu, 10 Nov 2022 11:53:45 +0100 Subject: [PATCH] Fix post navigation for Zola 0.16 --- README.md | 2 +- config.toml | 2 +- templates/macros/post.html | 14 +++++++------- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index cb2da77..ef8c7ec 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ See the live demo (of the default configuration) here: https://pawroman.github.io/zola-theme-terminimal/ -Tested with Zola v0.15.3. +Tested with Zola v0.16.1. Please note that earlier versions might not work because of breaking changes across Zola versions. #### Fork disclaimer diff --git a/config.toml b/config.toml index 28cc0e2..7966430 100644 --- a/config.toml +++ b/config.toml @@ -58,7 +58,7 @@ menu_items = [ {name = "github", url = "https://github.com/pawroman/zola-theme-terminimal", newtab = true}, ] -# Whether to show links to earlier and later posts +# Whether to show links to earlier and later (aka. higher/lower) posts # on each post page (defaults to true). enable_post_view_navigation = true diff --git a/templates/macros/post.html b/templates/macros/post.html index 892a2ba..f760d48 100644 --- a/templates/macros/post.html +++ b/templates/macros/post.html @@ -28,25 +28,25 @@ {% macro earlier_later(page) %} - {%- if config.extra.enable_post_view_navigation and page.earlier or page.later %} + {%- if config.extra.enable_post_view_navigation and page.lower or page.higher %}