Skip to content
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

[Feature] Add publish state #235

Open
carbontwelve opened this issue Feb 13, 2023 · 0 comments
Open

[Feature] Add publish state #235

carbontwelve opened this issue Feb 13, 2023 · 0 comments
Assignees
Labels
bug Something isn't working enhancement/misc Miscellaneous enhancement

Comments

@carbontwelve
Copy link
Contributor

A post should have the following publish state with "published" being the default:

  • draft
  • scheduled
  • published

This can be done in one of two ways:

  • Replace the draft flag with a publishState enum
  • Programatically decide state following the following rules:
    • any post with draft: true front matter is a draft
    • else any post with a date in the future is scheduled
    • else any post with a date in the past is published
    • an exception will apply for stub posts as these are both scheduled and published in their current state; all other scheduled posts should be treated as drafts and NOT be published

I think doing so programatically is the solution I will go with, replacing is_draft functionality for is_published. There is a long standing bug where draft content is being published, I need to fix that in closing this issue.

@carbontwelve carbontwelve added bug Something isn't working enhancement/misc Miscellaneous enhancement labels Feb 13, 2023
@carbontwelve carbontwelve self-assigned this Mar 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement/misc Miscellaneous enhancement
Projects
None yet
Development

No branches or pull requests

1 participant