diff options
author | Bjørn Erik Pedersen <[email protected]> | 2016-03-23 09:35:50 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2016-03-23 09:35:50 +0100 |
commit | 626874b94c56520884a3d96df1327d735f329452 (patch) | |
tree | 62b3ba08a9e3f1eb44d232a11f84222185944552 /transform | |
parent | 672890339efabf5a3f3b28f7d38c4a29277bc791 (diff) | |
download | hugo-626874b94c56520884a3d96df1327d735f329452.tar.gz hugo-626874b94c56520884a3d96df1327d735f329452.zip |
transform: Golint fixes
Diffstat (limited to 'transform')
-rw-r--r-- | transform/absurl.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/transform/absurl.go b/transform/absurl.go index 1a98a592c..255ac33b6 100644 --- a/transform/absurl.go +++ b/transform/absurl.go @@ -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) } |