diff options
author | mogimogitomato <osakana.yano49@gmail.com> | 2020-02-04 08:54:26 +0300 |
---|---|---|
committer | mogimogitomato <osakana.yano49@gmail.com> | 2020-02-04 08:59:21 +0300 |
commit | d24014ec4e500d10b22115734ee45fb63988642f (patch) | |
tree | 9ae5326669b2f9cbe529e997b4442a186b233c8d | |
parent | 554301b31fb55428fd3966564cd239f942e6c92f (diff) |
Fix #90 add pagination in tag page
-rw-r--r-- | layouts/taxonomy/tag.html | 3 |
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 }} |