Publish a post and then hide/unlist it

I would like to publish a post that is accessible by link but is hidden from the homepage. For my purposes a preview link does not work. I am already planning not to tag it.

Is this possible?

I was going to suggest using the preview link. If you publish the post, it /will/ show up in your sitemap (*), and search engines will find it. So if it is super secret, don’t publish.

(* actually, if you publish and set the post’s canonical URL to itself - accessible through metadata in the right site menu, below tags), it won’t appear in the sitemap.

Are you just trying to keep it off the front page, or does it really need to be a secret? If you just don’t want it on the front page, you may (depending a bit on the theme) be able to suppress it showing up there, using routes.yaml, or a small theme edit (the first works on Starter, the second does not). But it’s still likely to show up somewhere on the site (again, depending on theme). Probably on the author’s page. Probably in the sitemap (see trick above).

1 Like