mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-25 22:00:58 +02:00
Add handling of deeply nested front matter
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user