Add a blank line after the front matter when writing back a page. - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 05b76dcb6fb02fdaa7e8b99cd5cb123bdae8881e
DIR parent 73cbefdbc8829d24c9da27d9b2001a6a7e2eb169
HTML Author: Dato Simó <dato@net.com.org.es>
Date: Mon, 12 May 2014 03:34:44 +0100
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.
Diffstat:
M hugolib/page.go | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
DIR diff --git a/hugolib/page.go b/hugolib/page.go
@@ -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