sts10 / radiation

A simple blog CMS for totallynuclear.club pages.
MIT License
16 stars 3 forks source link

Added draft support #8

Closed gunnarhafdal closed 9 years ago

gunnarhafdal commented 9 years ago

Not sure if this is of any real use because I'm not sure how the people that use Radiation (Radiationers?) handle their drafts. Because the posts don't contain any front-matter like the posts for systems like Jekyll I went with the simplest solution I could come up with. If the first line in a post is "draft" (not case sensitive) then it won't get published. That's it.

I then added some code that tallies up your draft posts and writes them out when you are done publishing the blog, and I also show the draft status in the edit/delete menu. radiation-edit-menu-showing-a-draft The feature to show them in the edit/delete menu does have to read the first line of every file. I'm not sure how that will scale in the long run.