projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73cbefd
)
Add a blank line after the front matter when writing back a page.
author
Dato Simó
<dato@net.com.org.es>
Mon, 12 May 2014 02:34:44 +0000
(
03:34
+0100)
committer
spf13
<steve.francia@gmail.com>
Mon, 12 May 2014 19:46:58 +0000
(15:46 -0400)
Could also be done in parser.InterfaceToFrontMatter(), but logically the
extra blank line belongs to the page, not the front matter itself.
hugolib/page.go
patch
|
blob
|
history
diff --git
a/hugolib/page.go
b/hugolib/page.go
index 7305e0ecda760aafaf107139bfb2d8181352fc20..370a7a2e7b7cc902e65db83ec4848d5e211ca0f5 100644
(file)
--- 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