Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs/data
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-12-20 22:46:17 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-12-21 12:23:00 +0300
commit1773d71d5b40f5a6a14edca417d2818607a499f1 (patch)
tree0b63843378c705b8c9f4b8f6d9f18db58315233d /docs/data
parent8a58ebb311fd079f65068e7e37725e4d43f17ab5 (diff)
tpl: Add a warnf template func
Fixes #6628
Diffstat (limited to 'docs/data')
-rw-r--r--docs/data/docs.json16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/data/docs.json b/docs/data/docs.json
index a4c79ab16..7cdf8a405 100644
--- a/docs/data/docs.json
+++ b/docs/data/docs.json
@@ -3053,6 +3053,22 @@
"works!\n"
]
]
+ },
+ "Warnf": {
+ "Description": "Warnf formats according to a format specifier and logs a WARNING.\nIt returns an empty string.",
+ "Args": [
+ "format",
+ "a"
+ ],
+ "Aliases": [
+ "warnf"
+ ],
+ "Examples": [
+ [
+ "{{ warnf \"%s.\" \"warning\" }}",
+ ""
+ ]
+ ]
}
},
"hugo": {