Add handling of deeply nested front matter

This commit is contained in:
spf13
2014-04-23 02:55:43 -04:00
parent 4a8de8ea46
commit 69c1944f1f
2 changed files with 30 additions and 3 deletions

View File

@@ -247,6 +247,7 @@ func (p *Page) permalink() (*url.URL, error) {
if override, ok := p.Site.Permalinks[p.Section]; ok {
permalink, err = override.Expand(p)
if err != nil {
return nil, err
}
@@ -384,6 +385,8 @@ func (page *Page) update(f interface{}) error {
a[i] = cast.ToString(u)
}
page.Params[loki] = a
default:
page.Params[loki] = vv
}
}
}