Files
hugo/content/functions/replace.md
T
2017-03-27 14:33:35 -05:00

500 B

title, linktitle, description, godocref, date, publishdate, lastmod, categories, tags, ns, signature, workson, hugoversion, relatedfuncs, deprecated, aliases
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
false

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

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