shithub: hugo

Download patch

ref: c8269d6dbcaf1d47f6c8b88204d238adb82187e6
parent: 4161d542ce54b35e19c5652f07a1eb9bab39f1dd
author: spf13 <[email protected]>
date: Tue Apr 8 17:40:03 EDT 2014

Making node.Keywords the correct length

--- a/hugolib/page.go
+++ b/hugolib/page.go
@@ -144,7 +144,7 @@
 func newPage(filename string) *Page {
 	page := Page{contentType: "",
 		File:   File{FileName: filename, Extension: "html"},
-		Node:   Node{Keywords: make([]string, 10, 30)},
+		Node:   Node{Keywords: []string{}},
 		Params: make(map[string]interface{})}
 
 	jww.DEBUG.Println("Reading from", page.File.FileName)