mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
Add canonifyurls
config option.
Be able to inhibit AbsURL canonicalization of content, on a site configuration basis. Advantages of being able to inhibit this include making it easier to rendering on other hostnames, and being able to include resources on http or https depending on how this page was retrieved, avoiding mixed-mode client complaints without adding latency for plain http.
This commit is contained in:
@@ -15,6 +15,10 @@ func NewChain(trs ...link) chain {
|
||||
return trs
|
||||
}
|
||||
|
||||
func NewEmptyTransforms() []link {
|
||||
return make([]link, 0, 20)
|
||||
}
|
||||
|
||||
func (c *chain) Apply(w io.Writer, r io.Reader) (err error) {
|
||||
|
||||
buffer := new(bytes.Buffer)
|
||||
|
Reference in New Issue
Block a user