mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-24 21:56:05 +02:00
Rename Transform to AbsURL
This commit is contained in:
@@ -64,7 +64,7 @@ type Site struct {
|
||||
Info SiteInfo
|
||||
Shortcodes map[string]ShortcodeFunc
|
||||
timer *nitro.B
|
||||
Transformer *transform.Transformer
|
||||
Transformer transform.Transformer
|
||||
Target target.Output
|
||||
Alias target.AliasPublisher
|
||||
}
|
||||
@@ -618,7 +618,7 @@ func (s *Site) WritePublic(path string, content io.Reader) (err error) {
|
||||
}
|
||||
|
||||
if s.Transformer == nil {
|
||||
s.Transformer = &transform.Transformer{BaseURL: s.Config.BaseUrl}
|
||||
s.Transformer = &transform.AbsURL{BaseURL: s.Config.BaseUrl}
|
||||
}
|
||||
final := new(bytes.Buffer)
|
||||
s.Transformer.Apply(content, final)
|
||||
|
Reference in New Issue
Block a user