1
0
mirror of https://github.com/gohugoio/hugo.git synced 2024-05-11 05:54:58 +00:00

Add a blank line after the front matter when writing back a page.

Could also be done in parser.InterfaceToFrontMatter(), but logically the
extra blank line belongs to the page, not the front matter itself.
This commit is contained in:
Dato Simó
2014-05-12 03:34:44 +01:00
committed by spf13
parent 73cbefdbc8
commit 05b76dcb6f

View File

@ -570,6 +570,7 @@ func (page *Page) SetSourceMetaData(in interface{}, mark rune) (err error) {
if err != nil {
return err
}
by = append(by, '\n')
page.sourceFrontmatter = by