summaryrefslogtreecommitdiffstats
path: root/docs/content
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-06-13 20:43:03 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-06-13 20:43:03 +0200
commita0009e070ae179356b741bcb991a2c77b6b28cda (patch)
treee881c0868a7120613b7678171e2265e0b310d8f2 /docs/content
parent7bed16c30fc9405305c4c80d099cee5287126a42 (diff)
parent3c1deaf201a35de08d23cc58f8f03682cace3349 (diff)
Diffstat (limited to 'docs/content')
-rw-r--r--docs/content/en/content-management/front-matter.md2
-rw-r--r--docs/content/en/functions/eq.md15
-rw-r--r--docs/content/en/functions/ge.md20
-rw-r--r--docs/content/en/functions/gt.md20
-rw-r--r--docs/content/en/functions/le.md20
-rw-r--r--docs/content/en/functions/lt.md20
-rw-r--r--docs/content/en/functions/ne.md15
-rw-r--r--docs/content/en/functions/plainify.md2
-rw-r--r--docs/content/en/tools/editors.md1
9 files changed, 83 insertions, 32 deletions
diff --git a/docs/content/en/content-management/front-matter.md b/docs/content/en/content-management/front-matter.md
index 062288320..fb02f99f5 100644
--- a/docs/content/en/content-management/front-matter.md
+++ b/docs/content/en/content-management/front-matter.md
@@ -233,7 +233,7 @@ It's possible to set some options for Markdown rendering in a content's front ma
[pagevars]: /variables/page/
[section]: /content-management/sections/
[taxweight]: /content-management/taxonomies/
-[toml]: https://github.com/toml-lang/toml "Specification for TOML, Tom's Obvious Minimal Language"
+[toml]: https://toml.io/
[urls]: /content-management/urls/
[variables]: /variables/
[yaml]: https://yaml.org/spec/ "Specification for YAML, YAML Ain't Markup Language"
diff --git a/docs/content/en/functions/eq.md b/docs/content/en/functions/eq.md
index 98eca1aa5..d10539e49 100644
--- a/docs/content/en/functions/eq.md
+++ b/docs/content/en/functions/eq.md
@@ -1,16 +1,21 @@
---
title: eq
-description: Returns the boolean truth of arg1 == arg2.
+description: Returns the boolean truth of arg1 == arg2 || arg1 == arg3.
categories: [functions]
menu:
docs:
parent: functions
-keywords: [operators,logic]
-signature: ["eq ARG1 ARG2"]
+keywords: [comparison,operators,logic]
+signature: ["eq ARG1 ARG2 [ARG...]"]
relatedfuncs: []
---
-
```go-html-template
-{{ if eq .Section "blog" }}current{{ end }}
+{{ eq 1 1 }} → true
+{{ eq 1 2 }} → false
+
+{{ eq 1 1 1 }} → true
+{{ eq 1 1 2 }} → true
+{{ eq 1 2 1 }} → true
+{{ eq 1 2 2 }} → false
```
diff --git a/docs/content/en/functions/ge.md b/docs/content/en/functions/ge.md
index 8306935f0..e59b0f9c9 100644
--- a/docs/content/en/functions/ge.md
+++ b/docs/content/en/functions/ge.md
@@ -1,16 +1,26 @@
---
title: ge
-description: Returns the boolean truth of arg1 >= arg2.
+description: Returns the boolean truth of arg1 >= arg2 && arg1 >= arg3.
categories: [functions]
menu:
docs:
parent: functions
-keywords: [operators,logic]
-signature: ["ge ARG1 ARG2"]
+keywords: [comparison,operators,logic]
+signature: ["ge ARG1 ARG2 [ARG...]"]
relatedfuncs: []
---
-
```go-html-template
-{{ if ge 10 5 }}true{{ end }}
+{{ ge 1 1 }} → true
+{{ ge 1 2 }} → false
+{{ ge 2 1 }} → true
+
+{{ ge 1 1 1 }} → true
+{{ ge 1 1 2 }} → false
+{{ ge 1 2 1 }} → false
+{{ ge 1 2 2 }} → false
+
+{{ ge 2 1 1 }} → true
+{{ ge 2 1 2 }} → true
+{{ ge 2 2 1 }} → true
```
diff --git a/docs/content/en/functions/gt.md b/docs/content/en/functions/gt.md
index dba0d4dfc..dac1986fe 100644
--- a/docs/content/en/functions/gt.md
+++ b/docs/content/en/functions/gt.md
@@ -1,16 +1,26 @@
---
title: gt
-description: Returns the boolean truth of arg1 > arg2.
+description: Returns the boolean truth of arg1 > arg2 && arg1 > arg3.
categories: [functions]
menu:
docs:
parent: functions
-keywords: [operators,logic]
-signature: ["gt ARG1 ARG2"]
+keywords: [comparison,operators,logic]
+signature: ["gt ARG1 ARG2 [ARG...]"]
relatedfuncs: []
---
-
```go-html-template
-{{ if gt 10 5 }}true{{ end }}
+{{ gt 1 1 }} → false
+{{ gt 1 2 }} → false
+{{ gt 2 1 }} → true
+
+{{ gt 1 1 1 }} → false
+{{ gt 1 1 2 }} → false
+{{ gt 1 2 1 }} → false
+{{ gt 1 2 2 }} → false
+
+{{ gt 2 1 1 }} → true
+{{ gt 2 1 2 }} → false
+{{ gt 2 2 1 }} → false
```
diff --git a/docs/content/en/functions/le.md b/docs/content/en/functions/le.md
index 632e43a0e..1953bfae0 100644
--- a/docs/content/en/functions/le.md
+++ b/docs/content/en/functions/le.md
@@ -1,16 +1,26 @@
---
title: le
-description: Returns the boolean truth of arg1 <= arg2.
+description: Returns the boolean truth of arg1 <= arg2 && arg1 <= arg3.
categories: [functions]
menu:
docs:
parent: functions
-keywords: [operators,logic]
-signature: ["le ARG1 ARG2"]
+keywords: [comparison,operators,logic]
+signature: ["le ARG1 ARG2 [ARG...]"]
relatedfuncs: []
---
-
```go-html-template
-{{ if le 5 10 }}true{{ end }}
+{{ le 1 1 }} → true
+{{ le 1 2 }} → true
+{{ le 2 1 }} → false
+
+{{ le 1 1 1 }} → true
+{{ le 1 1 2 }} → true
+{{ le 1 2 1 }} → true
+{{ le 1 2 2 }} → true
+
+{{ le 2 1 1 }} → false
+{{ le 2 1 2 }} → false
+{{ le 2 2 1 }} → false
```
diff --git a/docs/content/en/functions/lt.md b/docs/content/en/functions/lt.md
index 08cad7904..9a8651574 100644
--- a/docs/content/en/functions/lt.md
+++ b/docs/content/en/functions/lt.md
@@ -1,16 +1,26 @@
---
title: lt
-description: Returns the boolean truth of arg1 < arg2.
+description: Returns the boolean truth of arg1 < arg2 && arg1 < arg3.
categories: [functions]
menu:
docs:
parent: functions
-keywords: [operators,logic]
-signature: ["lt ARG1 ARG2"]
+keywords: [comparison,operators,logic]
+signature: ["lt ARG1 ARG2 [ARG...]"]
relatedfuncs: []
---
-
```go-html-template
-{{ if lt 5 10 }}true{{ end }}
+{{ lt 1 1 }} → false
+{{ lt 1 2 }} → true
+{{ lt 2 1 }} → false
+
+{{ lt 1 1 1 }} → false
+{{ lt 1 1 2 }} → false
+{{ lt 1 2 1 }} → false
+{{ lt 1 2 2 }} → true
+
+{{ lt 2 1 1 }} → false
+{{ lt 2 1 2 }} → false
+{{ lt 2 2 1 }} → false
```
diff --git a/docs/content/en/functions/ne.md b/docs/content/en/functions/ne.md
index 54f66823c..49c69fbaa 100644
--- a/docs/content/en/functions/ne.md
+++ b/docs/content/en/functions/ne.md
@@ -1,16 +1,21 @@
---
title: ne
-description: Returns the boolean truth of arg1 != arg2.
+description: Returns the boolean truth of arg1 != arg2 && arg1 != arg3.
categories: [functions]
menu:
docs:
parent: functions
-keywords: [operators,logic]
-signature: ["ne ARG1 ARG2"]
+keywords: [comparison,operators,logic]
+signature: ["ne ARG1 ARG2 [ARG...]"]
relatedfuncs: []
---
-
```go-html-template
-{{ if ne .Section "blog" }}current{{ end }}
+{{ ne 1 1 }} → false
+{{ ne 1 2 }} → true
+
+{{ ne 1 1 1 }} → false
+{{ ne 1 1 2 }} → false
+{{ ne 1 2 1 }} → false
+{{ ne 1 2 2 }} → true
```
diff --git a/docs/content/en/functions/plainify.md b/docs/content/en/functions/plainify.md
index 78f52683b..8767a460e 100644
--- a/docs/content/en/functions/plainify.md
+++ b/docs/content/en/functions/plainify.md
@@ -1,6 +1,6 @@
---
title: plainify
-description: Strips any HTML and returns the plain text version of the provided string.
+description: Returns a string with all HTML tags removed.
categories: [functions]
menu:
docs:
diff --git a/docs/content/en/tools/editors.md b/docs/content/en/tools/editors.md
index 55ab47090..5efeba336 100644
--- a/docs/content/en/tools/editors.md
+++ b/docs/content/en/tools/editors.md
@@ -35,6 +35,7 @@ The Hugo community uses a wide range of preferred tools and has developed plug-i
## Vim
* [Vim Hugo Helper](https://github.com/robertbasic/vim-hugo-helper). A small Vim plugin to help me with writing posts with Hugo.
+* [vim-hugo](https://github.com/phelipetls/vim-hugo). A Vim plugin with syntax highlighting for templates and a few other features.
## Atom