Fix bug with JSON front matter parsing.
authorspf13 <steve.francia@gmail.com>
Tue, 9 Jul 2013 23:04:22 +0000 (19:04 -0400)
committerspf13 <steve.francia@gmail.com>
Tue, 9 Jul 2013 23:04:22 +0000 (19:04 -0400)
hugolib/page.go

index da1f65eb221bc1399b449bb826e6bf2050756f38..80aef1d3082055add4bfe5517c90364cc0310bda 100644 (file)
@@ -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
                        }