shithub: hugo

Download patch

ref: e76c3feb52381efaf8add59857d6940aaec7c0a8
parent: a6914e9c4cc96f2f03b0cb25e005b956f17ca39d
author: spf13 <[email protected]>
date: Tue Jul 9 15:04:22 EDT 2013

Fix bug with JSON front matter parsing.

--- a/hugolib/page.go
+++ b/hugolib/page.go
@@ -205,7 +205,7 @@
 			}
 
 			if found == 0 {
-				datum = lines[1 : i+1]
+				datum = lines[0 : i+1]
 				lines = lines[i+1:]
 				break
 			}