mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
3c405f5172
commit
5714531f34
1 changed files with 14 additions and 10 deletions
|
@ -1893,6 +1893,9 @@ func (s *Site) renderAndWritePage(name string, dest string, p *PageOutput, layou
|
|||
|
||||
transformLinks := transform.NewEmptyTransforms()
|
||||
|
||||
isHTML := p.outputFormat.IsHTML
|
||||
|
||||
if isHTML {
|
||||
if s.Info.relativeURLs || s.Info.canonifyURLs {
|
||||
transformLinks = append(transformLinks, transform.AbsURL)
|
||||
}
|
||||
|
@ -1907,6 +1910,7 @@ func (s *Site) renderAndWritePage(name string, dest string, p *PageOutput, layou
|
|||
transformLinks = append(transformLinks, transform.HugoGeneratorInject)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var path []byte
|
||||
|
||||
|
|
Loading…
Reference in a new issue