imfing / hextra

🔯 Modern, batteries-included Hugo theme for creating beautiful doc, blog and static websites
https://imfing.github.io/hextra/
MIT License
614 stars 147 forks source link

Show Taxonomies with expansion to pages in Sidebar #447

Open OrderdKaos opened 1 month ago

OrderdKaos commented 1 month ago

Feature Description

As a theme user, I would like to be able to create taxonomies and have the /_default/list.html (or a /_default/terms.html) page in the theme automatically handle them by showing the Term and then open to the pages that include that Term.

Problem/Solution

The ability to support all defined taxonomies (built in and user defined) automatically.

Alternatives Considered

Creating a separate Sidebar, Creating the taxonomy in the content folder.

Additional Context

I was able to get this working, though it was an inelegant solution by:

Another option I was exploring was to break the sidebar-tree section out into sub-partials based on page kind and then calling based on that.