Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ribice/kiss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmir Ribić <ribice@gmail.com>2020-02-04 09:27:44 +0300
committerGitHub <noreply@github.com>2020-02-04 09:27:44 +0300
commit6e4d72a35035cee6bef6d5561204f99603bcbaaf (patch)
tree9ae5326669b2f9cbe529e997b4442a186b233c8d
parent554301b31fb55428fd3966564cd239f942e6c92f (diff)
parentd24014ec4e500d10b22115734ee45fb63988642f (diff)
Merge pull request #91 from mogimogitomato/fix/no_pagination_in_tag_page
Fix #90 add pagination in tag page
-rw-r--r--layouts/taxonomy/tag.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/taxonomy/tag.html b/layouts/taxonomy/tag.html
index 8168cd4..ad006df 100644
--- a/layouts/taxonomy/tag.html
+++ b/layouts/taxonomy/tag.html
@@ -2,7 +2,8 @@
{{ partial "nav" . }}
<section class="section">
<div class="container">
- {{ range .Data.Pages }}
+ {{ $paginator := .Paginate (where .Data.Pages "Params.hidden" "ne" true) }}
+ {{ range sort .Paginator.Pages }}
<article>
<div class="subtitle tags is-6 is-pulled-right">
{{ if .Params.tags }}