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!

Asked a year ago • Improve this question
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 a year ago · Improve this answer

Thank you so much! Works great!

Answered a year 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 5 months 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 5 months ago · Improve this answer

Markdown allowed

Question or feedback?

Contact us
How to password-protect a site? Thumbnails on social media? Title in menu vs title on page? Home Page Alt Text for Images

On this page