summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-08-08 13:54:42 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-08-08 13:54:42 +0200
commit1639fd20d8429806462c0bcc6ee2c47a30cf51f2 (patch)
tree1819802ef7c69e20b5c39212e5f5ae8e7cb4f37d /docs/content/en/functions
parentc2a6741394bc609a663522b245d3d75f0ad17da4 (diff)
parent3a44bf182fed5f34621f450114083a6dd7e88a07 (diff)
Diffstat (limited to 'docs/content/en/functions')
-rw-r--r--docs/content/en/functions/cond.md3
-rw-r--r--docs/content/en/functions/countrunes.md1
-rw-r--r--docs/content/en/functions/countwords.md1
-rw-r--r--docs/content/en/functions/default.md2
4 files changed, 2 insertions, 5 deletions
diff --git a/docs/content/en/functions/cond.md b/docs/content/en/functions/cond.md
index 72a9c0a9a..a5e534426 100644
--- a/docs/content/en/functions/cond.md
+++ b/docs/content/en/functions/cond.md
@@ -7,7 +7,6 @@ menu:
docs:
parent: "functions"
signature: ["cond CONTROL VAR1 VAR2"]
-aliases: [/functions/cond/]
hugoversion: 0.27
relatedfuncs: [default]
toc: false
@@ -29,4 +28,4 @@ Would emit "goose" if the `$geese` array has exactly 1 item, or "geese" otherwis
Whenever you use a `cond` function, *both* variable expressions are *always* evaluated. This means that a usage like `cond false (div 1 0) 27` will throw an error because `div 1 0` will be evaluated *even though the condition is false*.
In other words, the `cond` function does *not* provide [short-circuit evaluation](https://en.wikipedia.org/wiki/Short-circuit_evaluation) and does *not* work like a normal [ternary operator](https://en.wikipedia.org/wiki/%3F:) that will pass over the first expression if the condition returns `false`.
-{{% /warning %}} \ No newline at end of file
+{{% /warning %}}
diff --git a/docs/content/en/functions/countrunes.md b/docs/content/en/functions/countrunes.md
index 8fdbdadb6..a52829a1c 100644
--- a/docs/content/en/functions/countrunes.md
+++ b/docs/content/en/functions/countrunes.md
@@ -15,7 +15,6 @@ workson: []
hugoversion:
relatedfuncs: []
deprecated: false
-aliases: [/functions/countrunes/]
---
In contrast with `countwords` function, which counts every word in a string, the `countrunes` function determines the number of runes in the content and excludes any whitespace. This has specific utility if you are dealing with CJK-like languages.
diff --git a/docs/content/en/functions/countwords.md b/docs/content/en/functions/countwords.md
index 44f9360c9..40a7b39e5 100644
--- a/docs/content/en/functions/countwords.md
+++ b/docs/content/en/functions/countwords.md
@@ -15,7 +15,6 @@ workson: []
hugoversion:
relatedfuncs: [countrunes]
deprecated: false
-aliases: [/functions/countwords/]
---
The template function works similar to the [.WordCount page variable][pagevars].
diff --git a/docs/content/en/functions/default.md b/docs/content/en/functions/default.md
index 4f34ed37a..1b5a9fb6f 100644
--- a/docs/content/en/functions/default.md
+++ b/docs/content/en/functions/default.md
@@ -18,7 +18,7 @@ hugoversion:
relatedfuncs: []
deprecated: false
draft: false
-aliases: [/functions/default/]
+aliases: []
needsexamples: false
---