Hide a post from the front page but show it in the archives?
I'm using the blog template. I have certain posts (RPG session summaries!) that I don't want showing on the front page, but I don't mind showing up in the archives list.
Right now, these posts have the metadata:
Page: yes Menu: no
…as I saw mentioned in this question. However, when I do this, the posts are not listed on the archives page, and when viewing them from a tag page, no dates are shown.
Essentially, I think what I'd want is a way to publish a post normally, but simply not have it show on the front page. Is this possible?
I'm not sure if this answers the question. On my blog awhile I built a special view using the blog template thanks to David. This takes any post with the tag photography and removes it from the front view. I wanted to have these posts which are basically stories about various photographs show up on the menu item but not on the front page. They are visible in the archives.
You can kinda see this on my blog:
https://mpmilestogo.site/tagged/photography
And I added the URL to my menu on top.
There are no dates associated with the posts and I never really cared since for me the stories and photos are rarely added or when I feel like it.
Is that kind of what you want?
Answered a year ago · Edit answerYes, instead of turning the posts into pages, I'd suggest using a tag, e.g. summaries
and then filtering these out manually from your homepage. That way, those posts tagged summaries
will appear in your archives page, etc.
To remove posts tagged summaries
posts from your homepage, you'd do something like this in your template's entries.html file:
{{#entries}}
{{^tagged.summaries}}
...
{{/tagged.summaries}}
{{/entries}}
Let me know if you want me to explain the example above in more detail – it's more an illustration of the filtering technique rather than a specific implementation
Answered a year ago · Edit answerHi. I did this and the image is hidden from the homepage, but now when I navigate to https://www.diklein.com/tagged/stream I see a post that links to a photo instead of just a photo. I have a folder called [stream]
with a single jpg in it.