lxndrblz / anatole

Anatole is a minimalistic two-column theme for Hugo.
https://themes.gohugo.io/themes/anatole/
MIT License
652 stars 361 forks source link

Add a feature to create unpublished posts #294

Closed Sh1Yo closed 2 years ago

Sh1Yo commented 2 years ago

First of all, thanks for the great theme. I've been searching for this feature, but it looks like it's impossible to create an unpublished/draft post that can only be accessible using url and cannot be seen in the main list.

lxndrblz commented 2 years ago

@Sh1Yo Would you mind explaining a use case for this feature?

Sh1Yo commented 2 years ago

A few things immediately come to mind:

lxndrblz commented 2 years ago

@Sh1Yo Thanks for your clarification.

In response to your first bullet point, I would advise using the draft=true option in the frontmatter, which helps to avoid publishing unfinished blog post. When running your hugo server locally, you will still be able to see how the site renders.

In terms of your second bullet point: Even in the current theme you can add a new content folder and place your items in there. These won't be listed on the main page but you can still access them via their URL. Please note that if you go for this solution everyone with knowledge of the domain will be able to access your article. You should then also block it in your robots.txt

The setup: Setup

The matching blog post can still be accessed via the URL http://localhost:1313/.

Hope that helps - Going to close this request for now.