cloudhead / toto

the 10 second blog-engine for hackers
MIT License
1.49k stars 245 forks source link

Privatizable #95

Closed ixti closed 13 years ago

ixti commented 13 years ago

This patch allows to "hide" articles with ~DRAFT~ prefix of title from the list of articles/archives. This is useful when you want to commit "draft" version of article, but don't want it to appear in the lists (atom feed, index page, archives).

Not sure will you find it useful or not (I assume this might seems great only for me), but anyway it has tests and it works for me, so now I don't need to have "draft" branch in local repo, or "keep an eye" on what to commit and what not - I just commit not finished posts as drafts, and even if my public server will pull all articles, draft ones won't "break" my atom feed or index page :))

ixti commented 13 years ago

Probably this was implementation of "i want to implement at least something" idea. Please, tell somebody what do you think about this idea, because I'm not sure is it good or crap right now. Thanks!

cloudhead commented 13 years ago

Hmmm, couldn't you just create a drafts/ folder in articles/ ? and move articles from there when they're ready?

ixti commented 13 years ago

Thanks for your reply, and yes, you're right about drafts folder, but not inside articles/ I guess I will create it under root directory because folders under articles will be used for categories (I'm gonna implement it soon). I guess my only idea of this "privatizable" branch was to being able to "see" draft posts locally before pushing changes. But you're just right, now I see that my proposal is ridiculous bullshit. Sorry to disturb you - will never start new features in the 5am anymore ;))