I’m trying to add blocks on my homepage that would display up to 3 featured posts of every (public) tags I have on my blog.
I tried to do it with:
{{#foreach tags}}
<div class="tag-list">
{{#get "posts" filter="tags:{{slug}}+featured:true" limit="3"}}
{{#foreach posts}}
{{> "post-card"}}
{{/foreach}}
{{/get}}
<h2>{{name}}</h2>
</div>
{{/foreach}}
But I got nothing, probably for the same reason that {{tags}} returns nothing on the home page, because {{tags}} appears to be only available on post context, not on index context.
Is there another way to do it?
I guess I could get posts for each tag by calling each one of them by name manually but I’d rather have something automatic through a loop.