mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
tpl: Add strings.Repeat
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
07b96d16e8
commit
13435a6f60
@@ -3410,6 +3410,20 @@
|
||||
]
|
||||
]
|
||||
},
|
||||
"Repeat": {
|
||||
"Description": "Repeat returns a new string consisting of count copies of the string s.",
|
||||
"Args": [
|
||||
"s",
|
||||
"n"
|
||||
],
|
||||
"Aliases": null,
|
||||
"Examples": [
|
||||
[
|
||||
"{{ \"yo\" | strings.Repeat 4 }}",
|
||||
"yoyoyoyo"
|
||||
]
|
||||
]
|
||||
},
|
||||
"Truncate": {
|
||||
"Description": "Truncate truncates a given string to the specified length.",
|
||||
"Args": [
|
||||
|
Reference in New Issue
Block a user