From 1ef22ae27f839facd058b7926e6680f3fe225a32 Mon Sep 17 00:00:00 2001 From: dojineko Date: Mon, 18 Sep 2017 21:22:30 +0900 Subject: [PATCH 1/4] Swappable pagination buttons by configuration --- exampleSite/config.toml | 4 +++ layouts/partials/pagination.html | 49 +++++++++++++++++++++--------- layouts/partials/post/actions.html | 25 ++++++++++++++- 3 files changed, 62 insertions(+), 16 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 3d0a16e2..8bb296d3 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -172,6 +172,10 @@ canonifyurls = true # they have to be referred from static root. Example # customJS = ["js/foo.js"] + # Display `Prev` on left side of the pagination, and `Next` on right side one. + # If you set this value to `true`, these positions swap. + # swapPagenator = false + # Sharing options # Comment and uncomment to enable or disable sharing options # If you wanna add a sharing option, read user documentation : diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html index f3b9e088..01bc1852 100644 --- a/layouts/partials/pagination.html +++ b/layouts/partials/pagination.html @@ -1,21 +1,40 @@ {{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
diff --git a/layouts/partials/post/actions.html b/layouts/partials/post/actions.html index a6f25860..fa3b95ef 100644 --- a/layouts/partials/post/actions.html +++ b/layouts/partials/post/actions.html @@ -2,6 +2,7 @@