antwarjs / antwar

A static site generator built with React and Webpack.
https://antwar.js.org/
MIT License
460 stars 35 forks source link

Rename `draft` as `isDraft` #67

Closed bebraw closed 9 years ago

bebraw commented 9 years ago

Rename draft as isDraft - reads better and communicates intention.

eldh commented 9 years ago

hm, should we allow the isDraft(s) flag on sections as well as specific posts? Thinking you either set it on the post (in headmatter or filename or something, depending on file), or by dropping it in a drafts folder. You might want to have several drafts folders if you have a more complex site.

bebraw commented 9 years ago

Interesting point. I wonder how the mapping should work with multiple draft folders. I suppose you can deal with it already by building a RegExp with some ors in it for Webpack to load the drafts to some section.

Having draft information within files themselves doesn't seem like a great idea as that hurts ux (how to tell normal content and drafts apart through fs).

This issue is more about our internal naming (paths.js, themes).