Add undocumented published setting to front matter
authorJeff Hodges <jeff@somethingsimilar.com>
Sun, 2 Aug 2015 06:02:20 +0000 (23:02 -0700)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 30 Aug 2015 18:40:56 +0000 (20:40 +0200)
commit311593bff013d5b99c68f498861ffde810be71b1
tree578cf7d6d7e6390001e6db7d4146d58244e8995b
parent5b90b388cb5042ee7ee729e70a55228004f0def6
Add undocumented published setting to front matter

A new "published" setting that is the opposite of "draft" is added and
left intentionally undocumented.

This setting comes from jekyll and eases the transition to hugo
greatly. We leave it undocumented so that folks don't rely on it, but
also don't shoot themselves in the foot during a jekyll migration.

The foot-shooting occurs if they have only a few documents that were
drafts ("published: false") in the jekyll version of their site and
don't notice that they were published in the migration to hugo.
hugolib/page.go
hugolib/page_test.go