Replies: 2 comments
-
|
I'm afraid it's not so easy, to get it really integrated in the sidebar menu structure. Because the sidebar menu get build based on the folder/file structure of your Hugo content. The A much easier way would be to define an addition menu (somewhere in the sidebars). Which you could code in a separate partial file. The code example to list all pages of a given taxonomy term you find here: https://gohugo.io/templates/taxonomy-templates/#list-all-content-in-a-given-taxonomy If this is a feature more users are interested in, I could imagine this way to implement it:
These are only some first thoughts about this topic. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for ideas. I figured it was not a built-in mode. I was able to hack it in but really messy. I did create a separate But I just did "view source" on the normal sidebar and then kind of hacked things to make it looks like that, so it's probably pretty hard-coded to my site. My And my The final result on the site. I was going to have a normal sidebar, by date. But I think I'll just leave the tag sidebar, and have just a list page be the full archive if you want to see all the posts in order. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have an archives page with a normal sidebar showing all pages.
For my homepage I'd like the side bar to show selected tags and the articles with those tags. For example below would be showing the tag "Best" and the 3 articles tagged "Best". I faked it for this screen shot by creating duplicates of the pages. I only have around 50 posts and will just have 4-5 tags.
How hard is this? I find the
sidebar-tree.htmlpartial to be pretty complicated.Beta Was this translation helpful? Give feedback.
All reactions