gokarna-theme / gokarna-hugo

A minimal opinionated theme for Hugo
https://gokarna-hugo.netlify.app
GNU General Public License v3.0
357 stars 139 forks source link

All tags listed in hiddenTags aren't displayed on the posts. #227

Closed nalysius closed 1 month ago

nalysius commented 1 month ago

Tags can be used to categorize posts, and categories don't need to be displayed.

An example is if the pages are used for about-us and contact, and posts as blog articles and projects presentation. Example of hugo.toml using this new field:

[params] hiddenTags = ["project", "blog"] [menu] [[menu.main]] identifier = "projects" url = "/tags/project/" name = "My Projects" weight = 1 [[menu.main]] identifier = "blog" url = "/tags/blog/" name = "Blog" weight = 2

netlify[bot] commented 1 month ago

Deploy Preview for gokarna-hugo ready!

Name Link
Latest commit f531b8a8f5580a2d6a6564855e9a8a4238e4cffc
Latest deploy log https://app.netlify.com/sites/gokarna-hugo/deploys/66d06f9aee63d80008519c93
Deploy Preview https://deploy-preview-227--gokarna-hugo.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

yashmehrotra commented 1 month ago

Thanks for the Pull Request @nalysius

Can you also document this feature in theme in the advanced docs: exampleSite/content/posts/theme-documentation-advanced.md

nalysius commented 1 month ago

The documentation has been added @yashmehrotra.

yashmehrotra commented 1 month ago

Thanks for the contribution