mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
Introduce unit testing for page.go
This commit is contained in:
@@ -78,10 +78,9 @@ func (p Pages) Limit(n int) Pages { return p[0:n] }
|
||||
|
||||
func initializePage(filename string) (page Page) {
|
||||
page = Page{contentType: "",
|
||||
File: File{FileName: filename,
|
||||
Extension: "html"},
|
||||
File: File{FileName: filename, Extension: "html"},
|
||||
Node: Node{Keywords: make([]string, 10, 30)},
|
||||
Params: make(map[string]interface{}),
|
||||
Node: Node{Keywords: make([]string, 10, 30)},
|
||||
Markup: "md"}
|
||||
page.Date, _ = time.Parse("20060102", "20080101")
|
||||
page.setSection()
|
||||
|
Reference in New Issue
Block a user