Hi all,
So I am trying to make a blog catalogue page as shown below but I am getting the same posts for each selected primary tag. Any idea how to pass data to the filter when using {{#get}} to get blogs inside a {{#get}} helper to get tags?
I have tried using the filter attribute as outlined in the #get helper documentation as {{#get "posts" limit="3" filter="slug:{{slug}}"}}
(See code below), but it seems that data from the first #foreach that returns tags is not passed to the #get helper inside it.
<!-- RETURN LIST OF DESIRED PRIMARY TAGS -->
{{#get "tags" filter="slug:getting-started,name:[europe,america,asia]" include="posts" as |primarytag|}}
{{#foreach primarytag}}
<div class="post-card-content">
<div class="post-card-content-link">
<header class="post-card-header">
<div class="post-card-primary-tag">Tagged</div>
<h2 class="post-card-title text-uppercase">{{name}}</h2>
</header>
<div class="post-card-excerpt">
<p>
{{#if description}}
{{description}}
{{else}}
A collection of {{plural ../pagination.total empty='zero posts' singular='% post' plural='%
posts'}}
{{/if}}
</p>
</div>
</div>
</div>
<!-- HERE TO GET BLOGS -->
{{#get "posts" limit="3" }}
<div class="post-feed{{#match @custom.feed_layout " List"}} list{{/match}}">
{{#foreach posts}}
{{> "post-card"}}
{{/foreach}}
</div>
{{/get}}
{{/foreach}}
{{/get}}