From f7c2406ddb580bb24eabe4760afa7edd325c4f49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Thu, 1 Jun 2023 11:20:46 +0200 Subject: [PATCH 1/7] netlify: Hugo 0.112.6 --- netlify.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/netlify.toml b/netlify.toml index be3f1d9a9..054d2a3f7 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,7 +3,7 @@ publish = "public" command = "hugo --gc --minify" [context.production.environment] -HUGO_VERSION = "0.112.5" +HUGO_VERSION = "0.112.6" HUGO_ENV = "production" HUGO_ENABLEGITINFO = "true" @@ -11,20 +11,20 @@ HUGO_ENABLEGITINFO = "true" command = "hugo --gc --minify --enableGitInfo" [context.split1.environment] -HUGO_VERSION = "0.112.5" +HUGO_VERSION = "0.112.6" 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.112.6" [context.branch-deploy] command = "hugo --gc --minify -b $DEPLOY_PRIME_URL" [context.branch-deploy.environment] -HUGO_VERSION = "0.112.5" +HUGO_VERSION = "0.112.6" [context.next.environment] HUGO_ENABLEGITINFO = "true" From cd68133090a07c3495f6bf315a362e1d310cd26c Mon Sep 17 00:00:00 2001 From: Balki <189196+balki@users.noreply.github.com> Date: Thu, 1 Jun 2023 13:49:29 +0000 Subject: [PATCH 2/7] Update editors.md to include vim-hugo (#2098) * Update editors.md to include vim-hugo * Update content/en/tools/editors.md Co-authored-by: Joe Mooring --------- Co-authored-by: Joe Mooring --- content/en/tools/editors.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/en/tools/editors.md b/content/en/tools/editors.md index 55ab47090..5efeba336 100644 --- a/content/en/tools/editors.md +++ b/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 From adb4297eb4b74abd2ab3bde773c75ee7bd33c134 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Fri, 2 Jun 2023 09:44:54 +0200 Subject: [PATCH 3/7] netlify: Hugo 0.112.7 --- netlify.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/netlify.toml b/netlify.toml index 054d2a3f7..f4b667ca1 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,7 +3,7 @@ publish = "public" command = "hugo --gc --minify" [context.production.environment] -HUGO_VERSION = "0.112.6" +HUGO_VERSION = "0.112.7" HUGO_ENV = "production" HUGO_ENABLEGITINFO = "true" @@ -11,20 +11,20 @@ HUGO_ENABLEGITINFO = "true" command = "hugo --gc --minify --enableGitInfo" [context.split1.environment] -HUGO_VERSION = "0.112.6" +HUGO_VERSION = "0.112.7" HUGO_ENV = "production" [context.deploy-preview] command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL" [context.deploy-preview.environment] -HUGO_VERSION = "0.112.6" +HUGO_VERSION = "0.112.7" [context.branch-deploy] command = "hugo --gc --minify -b $DEPLOY_PRIME_URL" [context.branch-deploy.environment] -HUGO_VERSION = "0.112.6" +HUGO_VERSION = "0.112.7" [context.next.environment] HUGO_ENABLEGITINFO = "true" From 5115de3c04bcef5291722d5fa9a95a3bcb0be988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Mon, 5 Jun 2023 17:26:40 +0200 Subject: [PATCH 4/7] netlify: Hugo 0.113.0 --- netlify.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/netlify.toml b/netlify.toml index f4b667ca1..135cdef64 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,7 +3,7 @@ publish = "public" command = "hugo --gc --minify" [context.production.environment] -HUGO_VERSION = "0.112.7" +HUGO_VERSION = "0.113.0" HUGO_ENV = "production" HUGO_ENABLEGITINFO = "true" @@ -11,20 +11,20 @@ HUGO_ENABLEGITINFO = "true" command = "hugo --gc --minify --enableGitInfo" [context.split1.environment] -HUGO_VERSION = "0.112.7" +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.7" +HUGO_VERSION = "0.113.0" [context.branch-deploy] command = "hugo --gc --minify -b $DEPLOY_PRIME_URL" [context.branch-deploy.environment] -HUGO_VERSION = "0.112.7" +HUGO_VERSION = "0.113.0" [context.next.environment] HUGO_ENABLEGITINFO = "true" From 4241135e0e38ba5d4148f2a59ad9311dc527d483 Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Tue, 6 Jun 2023 18:12:36 +0200 Subject: [PATCH 5/7] Front matter docu: improve link to TOML spec (#2102) --- content/en/content-management/front-matter.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/content-management/front-matter.md b/content/en/content-management/front-matter.md index 062288320..fb02f99f5 100644 --- a/content/en/content-management/front-matter.md +++ b/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" From 56e137043c20cc6a7ed071ebe87914fd18f6285a Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Sun, 11 Jun 2023 10:36:50 -0700 Subject: [PATCH 6/7] Update comparison operators (#2104) These became variadic with https://github.com/gohugoio/hugo/pull/6775 --- content/en/functions/eq.md | 15 ++++++++++----- content/en/functions/ge.md | 20 +++++++++++++++----- content/en/functions/gt.md | 20 +++++++++++++++----- content/en/functions/le.md | 20 +++++++++++++++----- content/en/functions/lt.md | 20 +++++++++++++++----- content/en/functions/ne.md | 15 ++++++++++----- 6 files changed, 80 insertions(+), 30 deletions(-) diff --git a/content/en/functions/eq.md b/content/en/functions/eq.md index 98eca1aa5..d10539e49 100644 --- a/content/en/functions/eq.md +++ b/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/content/en/functions/ge.md b/content/en/functions/ge.md index 8306935f0..e59b0f9c9 100644 --- a/content/en/functions/ge.md +++ b/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/content/en/functions/gt.md b/content/en/functions/gt.md index dba0d4dfc..dac1986fe 100644 --- a/content/en/functions/gt.md +++ b/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/content/en/functions/le.md b/content/en/functions/le.md index 632e43a0e..1953bfae0 100644 --- a/content/en/functions/le.md +++ b/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/content/en/functions/lt.md b/content/en/functions/lt.md index 08cad7904..9a8651574 100644 --- a/content/en/functions/lt.md +++ b/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/content/en/functions/ne.md b/content/en/functions/ne.md index 54f66823c..49c69fbaa 100644 --- a/content/en/functions/ne.md +++ b/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 ``` From 85befbb4dc2f526da99fa9f47d54a12e6282d36e Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Mon, 12 Jun 2023 14:45:05 -0700 Subject: [PATCH 7/7] Update plainify.md --- content/en/functions/plainify.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/functions/plainify.md b/content/en/functions/plainify.md index 78f52683b..8767a460e 100644 --- a/content/en/functions/plainify.md +++ b/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: