Fix bug with JSON front matter parsing. - 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 e76c3feb52381efaf8add59857d6940aaec7c0a8
DIR parent a6914e9c4cc96f2f03b0cb25e005b956f17ca39d
HTML Author: spf13 <steve.francia@gmail.com>
Date: Tue, 9 Jul 2013 19:04:22 -0400
Fix bug with JSON front matter parsing.
Diffstat:
M hugolib/page.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/hugolib/page.go b/hugolib/page.go
@@ -205,7 +205,7 @@ func splitPageContent(data []byte, start string, end string) ([]string, []string
}
if found == 0 {
- datum = lines[1 : i+1]
+ datum = lines[0 : i+1]
lines = lines[i+1:]
break
}