Files
hugoDocs/content/functions/replace.md
T
2017-05-26 14:25:22 -05:00

563 B

title, description, godocref, date, publishdate, lastmod, categories, menu, tags, ns, signature, workson, hugoversion, relatedfuncs, deprecated, aliases
title description godocref date publishdate lastmod categories menu tags ns 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 replaces all occurrences of the search string with the replacement string:

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