Add public_draft option for peer reviews. #170
Conversation
Adds a `public_draft: true` option for your YAML frontmatter so that your articles are built but not available for listings in `blog.articles`
Thanks for adding this, but do we really need a new first-class feature for |
Definitely an option. I personally don't see any use for |
The code looks good. This might be a useful feature. I have a lot of places I would need to filter the views to accomplish this. I don't think it's too complicated and it has a test to keep it from breaking. My current workflow for reviews is just put the markdown in a secret gist and share the link. I let the html just hang out in the open since my reviewers know html. It might be nicer for them if they can see what is looks like on the blog. |
Seems like this could be reduced to a helper:
|
Yeah, I'll move to using a helper. I honestly didn't realize there was helpers built in middleman and my head went right to: submit pull request to middleman-blog. |
I went ahead and wrote a blog post about how I used an helper for public draft support in case anyone runs into this pull request in the future and are looking for a solution: http://vroy.ca/2013/10/30/how-to-do-peer-reviews-with-middleman-blog.html |
Adds a
public_draft: true
option for your YAML frontmatter so that your articles are always built but not available for listings inblog.articles
This is especially useful when you want to share an article for peer review while not listing it publicly on your index page or RSS feed, etc
Notes:
BUNDLE_GEMFILE=/Users/vincentroy8/code/middleman-blog/Gemfile-3.0 bundle exec rake test