mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
Ensure Section is set before returning Page object.
This commit is contained in:
@@ -87,6 +87,7 @@ func NewPage(filename string) *Page {
|
||||
Params: make(map[string]interface{}),
|
||||
Markup: "md"}
|
||||
page.Date, _ = time.Parse("20060102", "20080101")
|
||||
page.guessSection()
|
||||
return &page
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user