mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-02 19:52:38 +00:00
4e0bca2b1e
We need to rework the whole template func docs and, while a good idea, this does not fit into that.
560 B
560 B
title, description, godocref, date, publishdate, lastmod, categories, menu, signature, workson, hugoversion, relatedfuncs, deprecated, aliases
| title | description | godocref | date | publishdate | lastmod | categories | menu | 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 |
|
|
|
false |
replace replaces all occurrences of the search string with the replacement string:
`{{ replace "Batman and Robin" "Robin" "Catwoman" }}`
→ "Batman and Catwoman"