Ensure Section is set before returning Page object.

This commit is contained in:
Noah Campbell
2013-08-30 17:14:36 -07:00
parent c32f401b15
commit bc3c229002
2 changed files with 8 additions and 0 deletions

View File

@@ -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
}