The condition for Section is met, but the one for pinned is not. I halve also tried: where .Data.Pages ".Params.pinned" "==" nil, where .Data.Pages "Params.pinned" "!=" true, they do not work. I keep getting in the list, items that have .Params.pinned set to true.
In my content, not all pages have pinned set. I want to get them! What am I doing wrong?
More info
This might be useful, I had a code before which was kinda working:
{{ range (where .Data.Pages "Section" "!=" "") }}
{{ if not .Params.pinned}}
<li>
<span class="date">
{{ .Date.Format "2006/01/02" }}
</span>
<span>{{ .Title | markdownify }}.</span>
</li>
{{ end }}
This was working! But I want to reorder and reverse, and the code above does not guarantee that the correct items will be picked. I need to move the condition on pinned in the where clause.
I am only rendering the title of /section-2/unpinned.md/ with the code you posted.
It seems that something else is going on and either me or the others will need to see a git repo with the source code of your project to reproduce the issue locally. If you cannot share your project then upload a minimal version with dummy content.
I see… Either I have something clearly stupid going on or there is an issue somewhere. Problem is I am not using Hugo 100%, I am using Blogdown. I hope there is not an issue with Blogdown interfacing with Hugo I will try to investigate a bit more