You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dynamic client-side tag filtering, by query string
Tag filtering story
Tags are represented in the index and the articles as Badges from Chakra. They are clickable, and point to the index page with a ?tag=tagName query string. The index listens for this query and show only the relevant articles, plus a way to clear the query.
getStaticProps
Tag filtering story
Tags are represented in the index and the articles as Badges from Chakra. They are clickable, and point to the index page with a
?tag=tagName
query string. The index listens for this query and show only the relevant articles, plus a way to clear the query.The post listing logic might be shared with #1, some examples:
https://github.com/zeit/next.js/tree/canary/examples/blog-starter
The text was updated successfully, but these errors were encountered: