I have a section called “posts”. I want to hide a certain partial in the list page of “posts” but show it in single pages. What’s the correct code to do it? if ne .Section "posts" hides in the whole section and its pages. (They are sharing the same sidebar, for single and list pages that contains this partial).
Edit: I had to add a front matter variable to the _index.md file of the section to exclude it. But is there a better way? Anyone?