New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hidden status for articles #1965
Comments
what would a hidden post do? |
Personally I'd like to mark some old posts as hidden so that they no longer appear on the main site (obsolete information etc.), but I can access them in the file system. |
Semantically, I think there's two distinct ideas being discussed here. Like with pages, a On the other hand, there could also be an |
I’ve been working around this with some ropey template code and monkey-patching bits of the feed generator. I’d be happy to have a go at incorporating this into Pelican core, if nothing else so I can tidy up my local install. :-) I don’t have much free time this weekend, but I’ll try to put a patch together at some point. |
@rr- / @alexwlchan: Is this something you would like to work on implementing? |
+1. My hack for now: I’ve set the article to draft and then configured a permanent redirect from the old URL to the draft URL in the Nginx I use to serve the files. |
@Telofy you can setup EDIT: If you want to have |
@avaris, thank you! That’s very convenient! (Since no one knows the slugs of new actual drafts, they remain hidden too.) |
This issue has been around for a while without much movement. If someone wants to submit a proposed implementation, we are happy to review pull requests. |
Since @GiovanH has expressed an interest in implementing If anyone is currently using |
#2866 is ready for review, although I'll poke at it a couple more times for hardening's sake. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your participation and understanding. |
I hesitated before creating this issue, since there are at least two workarounds for this:
.md~
status: draft
But
hidden
has a slightly different semantic value thandraft
, plus if pages can be hidden (without the notion of being a draft), why can't some posts too? I believe combiningdraft
andhidden
status to be an alias of each other would be pretty reasonable.The text was updated successfully, but these errors were encountered: