aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/data
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2021-06-08 18:52:38 +0200
committerBjørn Erik Pedersen <[email protected]>2021-06-08 18:52:38 +0200
commita91cd7652f7559492b070dbe02fe558348f3d0b6 (patch)
treeef126d1c5a0a17ec4ee8d3641d6356c591e79a38 /docs/data
parent162f41d0efdd4a5e12e489cf8ecf8490b45884da (diff)
downloadhugo-a91cd7652f7559492b070dbe02fe558348f3d0b6.tar.gz
hugo-a91cd7652f7559492b070dbe02fe558348f3d0b6.zip
docs: Regenerate docs helper
Diffstat (limited to 'docs/data')
-rw-r--r--docs/data/docs.json55
1 files changed, 52 insertions, 3 deletions
diff --git a/docs/data/docs.json b/docs/data/docs.json
index 5e27712e3..2b17ad8af 100644
--- a/docs/data/docs.json
+++ b/docs/data/docs.json
@@ -3144,6 +3144,10 @@
[
"\u003ca href=\"https://www.google.com?{{ (querify \"q\" \"test\" \"page\" 3) | safeURL }}\"\u003eSearch\u003c/a\u003e",
"\u003ca href=\"https://www.google.com?page=3\u0026amp;q=test\"\u003eSearch\u003c/a\u003e"
+ ],
+ [
+ "{{ slice \"foo\" 1 \"bar\" 2 | querify | safeHTML }}",
+ "bar=2\u0026foo=1"
]
]
},
@@ -3337,7 +3341,7 @@
"Description": "GetCSV expects a data separator and one or n-parts of a URL to a resource which\ncan either be a local or a remote one.\nThe data separator can be a comma, semi-colon, pipe, etc, but only one character.\nIf you provide multiple parts for the URL they will be joined together to the final URL.\nGetCSV returns nil or a slice slice to use in a short code.",
"Args": [
"sep",
- "urlParts"
+ "args"
],
"Aliases": [
"getCSV"
@@ -3347,7 +3351,7 @@
"GetJSON": {
"Description": "GetJSON expects one or n-parts of a URL to a resource which can either be a local or a remote one.\nIf you provide multiple parts they will be joined together to the final URL.\nGetJSON returns nil or parsed JSON to use in a short code.",
"Args": [
- "urlParts"
+ "args"
],
"Aliases": [
"getJSON"
@@ -3442,6 +3446,23 @@
]
]
},
+ "Erroridf": {
+ "Description": "Erroridf formats according to a format specifier and logs an ERROR and\nan information text that the error with the given ID can be suppressed in config.\nIt returns an empty string.",
+ "Args": [
+ "id",
+ "format",
+ "a"
+ ],
+ "Aliases": [
+ "erroridf"
+ ],
+ "Examples": [
+ [
+ "{{ erroridf \"my-err-id\" \"%s.\" \"failed\" }}",
+ ""
+ ]
+ ]
+ },
"Print": {
"Description": "Print returns string representation of the passed arguments.",
"Args": [
@@ -3829,6 +3850,34 @@
]
]
},
+ "Max": {
+ "Description": "Max returns the greater of two numbers.",
+ "Args": [
+ "a",
+ "b"
+ ],
+ "Aliases": null,
+ "Examples": [
+ [
+ "{{math.Max 1 2 }}",
+ "2"
+ ]
+ ]
+ },
+ "Min": {
+ "Description": "Min returns the smaller of two numbers.",
+ "Args": [
+ "a",
+ "b"
+ ],
+ "Aliases": null,
+ "Examples": [
+ [
+ "{{math.Min 1 2 }}",
+ "1"
+ ]
+ ]
+ },
"Mod": {
"Description": "Mod returns a % b.",
"Args": [
@@ -3907,7 +3956,7 @@
]
},
"Sqrt": {
- "Description": "Sqrt returns the square root of a number.\nNOTE: will return for NaN for negative values of a",
+ "Description": "Sqrt returns the square root of a number.",
"Args": [
"a"
],