mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 20:14:58 +00:00
Making node.Keywords the correct length
This commit is contained in:
1 parent
4161d542ce
commit
c8269d6dbc
1 file changed
+1
-1
+1
-1
@@ -144,7 +144,7 @@ func renderBytes(content []byte, pagefmt string) []byte {
|
|||||||
func newPage(filename string) *Page {
|
func newPage(filename string) *Page {
|
||||||
page := Page{contentType: "",
|
page := Page{contentType: "",
|
||||||
File: File{FileName: filename, Extension: "html"},
|
File: File{FileName: filename, Extension: "html"},
|
||||||
Node: Node{Keywords: make([]string, 10, 30)},
|
Node: Node{Keywords: []string{}},
|
||||||
Params: make(map[string]interface{})}
|
Params: make(map[string]interface{})}
|
||||||
|
|
||||||
jww.DEBUG.Println("Reading from", page.File.FileName)
|
jww.DEBUG.Println("Reading from", page.File.FileName)
|
||||||
|
|||||||
Reference in new issue
Block a user