- What’s your URL? Suzieq - Packet Coders
- What version of Ghost are you using? 4.12.0
And
- How was Ghost installed and configured? Via Docker and the Docker hub image
- What Node version, database, OS & browser are you using? TBC
- What errors or information do you see in the console? None
- What steps could someone else take to reproduce the issue you’re having?
Add the following to yourtag.hbs
.
The issue is this…
I have certain posts I want to hide when I click on the associated tag.
Therefore Ive added a filter via ^has in tag.hbs
. But this filters (removes the posts) but now when I go to the tag the output is not correct. Its hard to explain but you will see from here Suzieq - Packet Coders. The posts are hidden but the displayed posts are not displayed in the right places. In this example I have 1 post but it displays it on page 2.
Ive tried using a visibility on the foreach, but the same happens. Any ideas? Thanks
tag.hbs
...
<div class="inner posts">
<div class="post-feed">
{{#foreach posts}}
{{^has tag="#lesson"}}
{{!-- The tag below includes the markup for each post - partials/post-card.hbs --}}
{{> "post-card"}}
{{/has}}
{{/foreach}}
</div>
{{pagination}}
</div>
</main>