hugo/docs/content/en/functions/replace.md

477 B

title description godocref date publishdate lastmod categories menu keywords signature workson hugoversion relatedfuncs deprecated aliases
replace Replaces all occurrences of the search string with the replacement string. 2017-02-01 2017-02-01 2017-02-01
functions
docs
parent
functions
replace INPUT OLD NEW
false
`{{ replace "Batman and Robin" "Robin" "Catwoman" }}`
→ "Batman and Catwoman"