mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
transform: Golint fixes
This commit is contained in:
@@ -13,12 +13,16 @@
|
||||
|
||||
package transform
|
||||
|
||||
var ar *absURLReplacer = newAbsURLReplacer()
|
||||
var ar = newAbsURLReplacer()
|
||||
|
||||
// AbsURL replaces relative URLs with absolute ones
|
||||
// in HTML files, using the baseURL setting.
|
||||
var AbsURL = func(ct contentTransformer) {
|
||||
ar.replaceInHTML(ct)
|
||||
}
|
||||
|
||||
// AbsURLInXML replaces relative URLs with absolute ones
|
||||
// in XML files, using the baseURL setting.
|
||||
var AbsURLInXML = func(ct contentTransformer) {
|
||||
ar.replaceInXML(ct)
|
||||
}
|
||||
|
Reference in New Issue
Block a user