mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
@@ -1893,6 +1893,9 @@ func (s *Site) renderAndWritePage(name string, dest string, p *PageOutput, layou
|
|||||||
|
|
||||||
transformLinks := transform.NewEmptyTransforms()
|
transformLinks := transform.NewEmptyTransforms()
|
||||||
|
|
||||||
|
isHTML := p.outputFormat.IsHTML
|
||||||
|
|
||||||
|
if isHTML {
|
||||||
if s.Info.relativeURLs || s.Info.canonifyURLs {
|
if s.Info.relativeURLs || s.Info.canonifyURLs {
|
||||||
transformLinks = append(transformLinks, transform.AbsURL)
|
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)
|
transformLinks = append(transformLinks, transform.HugoGeneratorInject)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var path []byte
|
var path []byte
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user