mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
hugolib: Read default output formats from site config
This commit is contained in:
@@ -859,7 +859,7 @@ func (p *Page) RelPermalink() string {
|
||||
func (p *Page) initURLs() error {
|
||||
// TODO(bep) output
|
||||
if len(p.outputFormats) == 0 {
|
||||
p.outputFormats = p.s.defaultOutputDefinitions.ForKind(p.Kind)
|
||||
p.outputFormats = p.s.outputFormats[p.Kind]
|
||||
}
|
||||
rel := p.createRelativePermalink()
|
||||
p.permalink = p.s.permalink(rel)
|
||||
|
Reference in New Issue
Block a user