Log in Sign up

How to hide ‘digital garden’ posts from Magazine template front page?

Hi! Is it possible to hide 'digital garden' posts from my front page? I want to only show blog-style posts, but my 'evergreen' digital garden posts are also appearing on the front page. I want to be able to link to digital garden posts, but not show them on front page or in archive. Thanks!

4 replies

Add the following metadata at the very start of your digital garden posts:

Page: yes
Menu: no

This will prevent those posts appearing on your main feed, and in your site's menu, but you will still be able to link to them from other posts. It might be helpful to also set the link of each post manually, so you can more easily link to the post from elsewhere:

Link: first-garden

Please let me know if you have any questions about this or anything else.

Answered 2 years ago · Improve this answer

Thank you so much! Works great!

Answered 2 years ago · Improve this answer

Would one then be able to create a template that generates a list of files containing that combination of metadata (Page: yes Menu: no)? Something like
{{#Page}}
{{^Menu}}
<a href=“{{{url}}}“>{{title}}</a>
{{/Menu}}
{{/Page}}

I guess the question is whether there is an array of pages that one could use… Or do I misunderstand how Mustache uses inverted sections?

Answered a year ago · Improve this answer

No, it's not possible to dynamically render a list of all the pages on your site. It's possible for posts, but not pages. I will add this to the template engine and follow up here

Answered a year ago · Improve this answer

Markdown allowed
Question or feedback?
Contact us

Tags

developers 83 questions bug 40 questions posts 26 questions metadata 24 questions resolved 24 questions templates 23 questions how 14 questions tags 13 questions markdown 11 questions pages 9 questions More tags →
Subscribe for changes
RSS Feed of latest questions