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:
@ -570,6 +570,7 @@ func (page *Page) SetSourceMetaData(in interface{}, mark rune) (err error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
by = append(by, '\n')
|
||||||
|
|
||||||
page.sourceFrontmatter = by
|
page.sourceFrontmatter = by
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user