Filter Hugo posts using multiple tags.
Not tested on sites with a very large number of posts.
See Demo, with tags, authors and sections as filters: https://pointy.netlify.com/filter/
Demo with tags only, and using Masonry: https://pointy.netlify.com/tags/
Documentation here: https://pointy.netlify.com/filter/
This repo comes with a demo Hugo site at exampleSite
. The relevant code is in exampleSite/layouts/page/filter.html
git clone https://github.com/pointyfar/hugo-tags-filter.git
cd hugo-tags-filter/exampleSite
hugo server
Navigate to
localhost:1313/filter/
for demolocalhost:1313/filterdoc/
for demo + documentation
- Improve documentation
- Add function to update tags counts
- Scenario: Author1 has only 1 post, tagged
red
. Selecting Author2 filter should show tagred
as 0 or disabled.
- Scenario: Author1 has only 1 post, tagged
- Possibly add option to choose AND vs OR
- Currently (OR within a filter set) + (AND between filter sets)
- Add deselect all option