Log in Sign up

How to hide 'digital garden' posts from 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!


3 months ago, 6 replies   developers   Edit question

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 3 years ago · Edit answer

Thank you so much! Works great!

Answered 3 years ago · Edit 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 2 years ago · Edit 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 2 years ago · Edit answer

Did you ever implement this? "dynamically render a list of all the pages on your site"?

Answered 3 months ago · Edit answer

Not yet, although I have my head down working on the template engine right now. If you want to be notified when you can render a list of pages, please send us an email

Answered 3 months ago · Edit answer