I want to be able to list down blog posts from different categories. I want to show 10 posts across all categories (combined, not 10 posts from each category) and I dont want to display those posts that have unlisted set to true.
So something like:
{{ with .Site.Taxonomies.category "new york" "tokyo" "london" }}
{{ $pages := . }}
{{ range first 10 (where $pages ".Params.unlisted" "!=" true) }}
{{ partial "article-card.html" . }}
{{ end }}
{{ end }}
I tried few approaches but I am failing at scoping this correctly.
git clone --single-branch -b hugo-forum-topic-36701 https://github.com/jmooring/hugo-testing hugo-forum-topic-36701
cd hugo-forum-topic-36701
hugo server