mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
hugolib: Read media types and output formats from site config
Closes #3222 Closes #3223
This commit is contained in:
@@ -909,7 +909,7 @@ func (p *Page) update(f interface{}) error {
|
||||
o := cast.ToStringSlice(v)
|
||||
if len(o) > 0 {
|
||||
// Output formats are exlicitly set in front matter, use those.
|
||||
outFormats, err := output.DefaultFormats.GetByNames(o...)
|
||||
outFormats, err := p.s.outputFormatsConfig.GetByNames(o...)
|
||||
|
||||
if err != nil {
|
||||
p.s.Log.ERROR.Printf("Failed to resolve output formats: %s", err)
|
||||
|
Reference in New Issue
Block a user