Skip to content

Commit

Permalink
Merge commit '3c1deaf201a35de08d23cc58f8f03682cace3349'
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Jun 13, 2023
2 parents 7bed16c + 3c1deaf commit a0009e0
Show file tree
Hide file tree
Showing 10 changed files with 87 additions and 36 deletions.
2 changes: 1 addition & 1 deletion docs/content/en/content-management/front-matter.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
15 changes: 10 additions & 5 deletions docs/content/en/functions/eq.md
Original file line number Diff line number Diff line change
@@ -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
```
20 changes: 15 additions & 5 deletions docs/content/en/functions/ge.md
Original file line number Diff line number Diff line change
@@ -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
```
20 changes: 15 additions & 5 deletions docs/content/en/functions/gt.md
Original file line number Diff line number Diff line change
@@ -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
```
20 changes: 15 additions & 5 deletions docs/content/en/functions/le.md
Original file line number Diff line number Diff line change
@@ -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
```
20 changes: 15 additions & 5 deletions docs/content/en/functions/lt.md
Original file line number Diff line number Diff line change
@@ -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
```
15 changes: 10 additions & 5 deletions docs/content/en/functions/ne.md
Original file line number Diff line number Diff line change
@@ -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
```
2 changes: 1 addition & 1 deletion docs/content/en/functions/plainify.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
1 change: 1 addition & 0 deletions docs/content/en/tools/editors.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions docs/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,28 @@ publish = "public"
command = "hugo --gc --minify"

[context.production.environment]
HUGO_VERSION = "0.112.5"
HUGO_VERSION = "0.113.0"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"

[context.split1]
command = "hugo --gc --minify --enableGitInfo"

[context.split1.environment]
HUGO_VERSION = "0.112.5"
HUGO_VERSION = "0.113.0"
HUGO_ENV = "production"

[context.deploy-preview]
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"

[context.deploy-preview.environment]
HUGO_VERSION = "0.112.5"
HUGO_VERSION = "0.113.0"

[context.branch-deploy]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"

[context.branch-deploy.environment]
HUGO_VERSION = "0.112.5"
HUGO_VERSION = "0.113.0"

[context.next.environment]
HUGO_ENABLEGITINFO = "true"
Expand Down

0 comments on commit a0009e0

Please sign in to comment.