From: spf13 Date: Tue, 9 Jul 2013 23:04:22 +0000 (-0400) Subject: Fix bug with JSON front matter parsing. X-Git-Tag: v0.8~38 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e76c3feb;p=brevno-suite%2Fhugo Fix bug with JSON front matter parsing. --- diff --git a/hugolib/page.go b/hugolib/page.go index da1f65eb..80aef1d3 100644 --- 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 }