diff --git a/dir.go b/dir.go index e3437b1..078a773 100644 --- a/dir.go +++ b/dir.go @@ -33,7 +33,7 @@ type Page struct { Path string `yaml:"-"` FilePath string `yaml:"-"` Content string `yaml:"-"` - Params map[string]string + Params map[string]interface{} Prev *Page `yaml:"-"` Next *Page `yaml:"-"` } @@ -315,6 +315,10 @@ func (d *Dir) Content() string { return d.index.Content } +func (d *Dir) Params() map[string]interface{} { + return d.index.Params +} + func (d *Dir) getDir(path string) *Dir { // XXX: This is inefficient if d.Path == path {