mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Make contentTransformer names consistent
This commit is contained in:
parent
bec4bdae99
commit
bec9b92d0c
1 changed files with 4 additions and 4 deletions
|
@ -18,8 +18,8 @@ func absURLFromURL(URL string) (trs []link, err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func absURLFromReplacer(ar *absURLReplacer) (trs []link, err error) {
|
func absURLFromReplacer(ar *absURLReplacer) (trs []link, err error) {
|
||||||
trs = append(trs, func(rw contentTransformer) {
|
trs = append(trs, func(ct contentTransformer) {
|
||||||
ar.replaceInHTML(rw)
|
ar.replaceInHTML(ct)
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -34,8 +34,8 @@ func absURLInXMLFromURL(URL string) (trs []link, err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func absURLInXMLFromReplacer(ar *absURLReplacer) (trs []link, err error) {
|
func absURLInXMLFromReplacer(ar *absURLReplacer) (trs []link, err error) {
|
||||||
trs = append(trs, func(rw contentTransformer) {
|
trs = append(trs, func(ct contentTransformer) {
|
||||||
ar.replaceInXML(rw)
|
ar.replaceInXML(ct)
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue