From 3127ea1c02f6a7701b202be915df138723069961 Mon Sep 17 00:00:00 2001 From: Arnaud Rebillout Date: Fri, 7 Aug 2020 10:32:05 +0700 Subject: [PATCH] Dont show older and newer buttons when pagination is disabled --- README.md | 1 + templates/index.html | 2 ++ 2 files changed, 3 insertions(+) diff --git a/README.md b/README.md index d9fc198..8c2040c 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ List of Pelican's settings that are supported by this theme. Refer to the for more details. - `FEED_*` and `*_FEED_*` +- `DEFAULT_PAGINATION` - `DISPLAY_PAGES_ON_MENU` - `DISQUS_SITENAME` - `GOOGLE_ANALYTICS` diff --git a/templates/index.html b/templates/index.html index 63591d6..814b373 100644 --- a/templates/index.html +++ b/templates/index.html @@ -15,6 +15,7 @@ {% endfor %} + {% if DEFAULT_PAGINATION %} + {% endif %} {% endblock %}