Log in Sign up

Hide posts on main page?

Is there a way to publish a post, but not have it show up in the main feed?

2 replies Asked May 11 '22 at 13:50 · Improve this question

I'm not David, but I've set up something like this on my own site, so in case you haven't figured it out yourself yet: You can exclude a tag from showing up in the main feed. Tag any post you don't want to show with a dedicated tag, say "hidden". Then, in your entries.html, add {{^tagged.hidden}} after {{#entries}}, and {{/tagged.hidden}} before the closing {{/entries}}.

You can do the same thing with the {{#recentEntries}} tags in your feed.rss if you also don't want the post to appear in your main RSS feed.

Answered May 12 '22 at 14:23 · Improve this answer

The essential strategy will be to filter out entries from any of the entry lists in your template:

{{#entries}}
...
{{/entries}}

You could filter out these entries using either their tags or some custom metadata you set. Let's say you wanted to exclude all entries which have custom 'Orange' metadata declared:

{{#entries}}
{{^metadata.orange}}
...
{{/metadata.orange}}
{{/entries}}
Answered May 20 '22 at 16:21 · Improve this answer

Markdown allowed