diff options
author | Emir Ribić <ribice@gmail.com> | 2020-02-04 09:27:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-04 09:27:44 +0300 |
commit | 6e4d72a35035cee6bef6d5561204f99603bcbaaf (patch) | |
tree | 9ae5326669b2f9cbe529e997b4442a186b233c8d | |
parent | 554301b31fb55428fd3966564cd239f942e6c92f (diff) | |
parent | d24014ec4e500d10b22115734ee45fb63988642f (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.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 }} |