mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
transform: Golint fixes
This commit is contained in:
parent
672890339e
commit
626874b94c
1 changed files with 5 additions and 1 deletions
|
@ -13,12 +13,16 @@
|
||||||
|
|
||||||
package transform
|
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) {
|
var AbsURL = func(ct contentTransformer) {
|
||||||
ar.replaceInHTML(ct)
|
ar.replaceInHTML(ct)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// AbsURLInXML replaces relative URLs with absolute ones
|
||||||
|
// in XML files, using the baseURL setting.
|
||||||
var AbsURLInXML = func(ct contentTransformer) {
|
var AbsURLInXML = func(ct contentTransformer) {
|
||||||
ar.replaceInXML(ct)
|
ar.replaceInXML(ct)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue