From 23254eb60f5507c85adacafa5da263a6386ee09d Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 11 Mar 2020 16:22:32 +0100 Subject: Fix Paginator code for list page --- exampleSite/config.toml | 4 ---- layouts/_default/list.html | 14 +++++++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 9389f73..b663d69 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -23,7 +23,3 @@ unsafe = true anonymizeIP = true respectDoNotTrack = true -[[menu.main]] - name = "Shortcodes" - url = "shortcodes/" - weight = 1 diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 19bd0ea..a645cbe 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -74,20 +74,24 @@ {{ end }} + +
+
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }} -
{{- end }} -- cgit v1.2.3