mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
Change the order of Apply to be more Unixy
Typically the destination is on the left and the src is on the right.
This commit is contained in:
@@ -618,10 +618,13 @@ func (s *Site) WritePublic(path string, content io.Reader) (err error) {
|
||||
}
|
||||
|
||||
if s.Transformer == nil {
|
||||
s.Transformer = &transform.AbsURL{BaseURL: s.Config.BaseUrl}
|
||||
s.Transformer = transform.NewChain(
|
||||
&transform.AbsURL{BaseURL: s.Config.BaseUrl},
|
||||
&transform.NavActive{Section: "tbd"},
|
||||
)
|
||||
}
|
||||
final := new(bytes.Buffer)
|
||||
s.Transformer.Apply(content, final)
|
||||
s.Transformer.Apply(final, content)
|
||||
return s.Target.Publish(path, final)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user