2017-03-27 16:32:31 -05:00

523 B

title linktitle description godocref date publishdate lastmod categories tags ns signature workson hugoversion relatedfuncs deprecated aliases
replace replace Replaces all occurrences of the search string with the replacement string. 2017-02-01 2017-02-01 2017-02-01
functions
replace INPUT OLD NEW
false

replace replaces all occurrences of the search string with the replacement string:

`{{ replace "Batman and Robin" "Robin" "Catwoman" }}`
→ "Batman and Catwoman"