I have a setup a tag: “hidden”, which i excluded from the homepage at / by using a filter on a get wrapper:
{{!-- The main content area --}}
<main id="site-main" class="site-main outer">
<div class="inner posts">
<div class="post-feed">
{{#get "posts" filter="tags:-[hidden]"}}
{{#foreach posts}}
{{!-- The tag below includes the markup for each post - partials/post-card.hbs --}}
{{> "post-card"}}
{{/foreach}}
{{/get}}
</div>
</div>
</main>
I am running the latest version of ghost, but I know this has little to do with that.
So in the footer of my posts that do show up on the homepage, the posts tagged ‘hidden’ featured.
How do I stop that?
I tried changing it to filter out hash-hidden, and changed the hidden tag to #hidden
still features it in the footers…
That will only filter posts within that specific {{#get}} block. You’d need to include the filter anywhere you don’t want to show posts with that tag so you’d need to do the same for the {{#get}} block in the theme’s footer.
If you’re trying to filter content across the whole site then dynamic routing may be closer to what you’re trying to achieve
dynamic routing was my initial thought, hence I reconfigured my routes.yaml but the filter never worked.
how would you recommend I do it?
as far as I am concerned, I thought I would do this:
I reconfigured my index.hbs to filter out #hidden, and retagged posts accordingly, so dont be confused if it says hash-hidden below instead of the ‘hidden’ as stated in the initial question