Support pages without front matter
authorVas Sudanagunta <vas@commonkarma.org>
Fri, 26 Jan 2018 03:54:15 +0000 (22:54 -0500)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 26 Jan 2018 08:17:27 +0000 (09:17 +0100)
commit91bb774ae4e129f7ed0624754b31479c960ef774
tree9c6d7628e9f5ec7c25842bb8609278da60ab2ec4
parent3f0379adb72389954ca2be6a9f2ebfcd65c6c440
Support pages without front matter

* Page without front matter now treated same as a page with empty front matter.
* Test cases added to cover this and repro issue #4320.
* Type safety of front matter code improved.

Fixes #4320
commands/hugo.go
commands/import_jekyll.go
commands/undraft.go
commands/undraft_test.go
hugolib/page.go
hugolib/page_test.go
parser/frontmatter.go
parser/page.go