Param to hide page from listing? #777
Replies: 2 comments 3 replies
-
You came across one of the features that is missing in Ananke. I will add it relatively soon, but until then you should be able to fix this reading through the mainSections documentation. Basically if you define "post" as main section (if you followed the content setup of the example site) all other pages should be hidden from these menus/lists. The problem is, that to make this properly work we will need to rename the content folder to |
Beta Was this translation helpful? Give feedback.
-
Could the Hugo |
Beta Was this translation helpful? Give feedback.
-
Greetings,
I'm fairly new to the world of hugo and more than that to ananke so please forgive me if I'm asking a question that more educated people know.
Here's the problem I'm trying to solve:
I need to add a privacy statement and an imprint to my blog by law. Both pages need to be accessibly with only one click from each page.
I've managed to create the pages and add them to the menu. However the pages show up in the blog list and I haven't found a way to hide them from the list of (new) posts.
My reading suggests to add a condition that checks if e.b. a param
list
is set tohide
orshow
and list the post only if it would say show. Is that the way to go with ananke? Is there a generic hugo way and I haven't found it yet?TIA
Patrick
Beta Was this translation helpful? Give feedback.
All reactions