summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-05-08 16:56:42 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-05-08 16:56:42 +0200
commit1c7759028ed02170f128c1ede3b098e470803a26 (patch)
treea775c99a24f5bb63570ad5d8001f79031a2469d8 /docs
parent35c88a7f907f20652e4e55697c0c438da0c4d57d (diff)
parent327aaed6d8ca57d8e5e3acb99ff53402ff1c556d (diff)
Diffstat (limited to 'docs')
-rw-r--r--docs/content/en/content-management/build-options.md7
-rw-r--r--docs/content/en/templates/introduction.md14
-rw-r--r--docs/netlify.toml8
3 files changed, 7 insertions, 22 deletions
diff --git a/docs/content/en/content-management/build-options.md b/docs/content/en/content-management/build-options.md
index c3f6f04c9..7bbb772df 100644
--- a/docs/content/en/content-management/build-options.md
+++ b/docs/content/en/content-management/build-options.md
@@ -95,18 +95,15 @@ Website needs to showcase a few of the hundred "testimonials" available as conte
To avoid setting the build options on every testimonials, one can use [`cascade`]({{< relref "/content-management/front-matter#front-matter-cascade" >}}) on the testimonial section's content file.
-```yaml
-#content/testimonials/_index.md
+{{< code-toggle >}}
title: Testimonials
-# section build options:
_build:
render: true
-# children build options with cascade
cascade:
_build:
render: false
list: true # default
-```
+{{< /code-toggle >}}
```go-html-template
{{/* layouts/_defaults/testimonials.html */}}
diff --git a/docs/content/en/templates/introduction.md b/docs/content/en/templates/introduction.md
index 751ed3f29..801df71cc 100644
--- a/docs/content/en/templates/introduction.md
+++ b/docs/content/en/templates/introduction.md
@@ -107,19 +107,7 @@ The custom variables need to be prefixed with `$`.
{{ $address := "123 Main St." }}
{{ $address }}
```
-
-{{% warning %}}
-For Hugo v0.47 and older versions, variables defined inside `if`
-conditionals and similar are not visible on the outside.
-See [https://github.com/golang/go/issues/10608](https://github.com/golang/go/issues/10608).
-
-Hugo has created a workaround for this issue in [Scratch](/functions/scratch).
-{{% /warning %}}
-
-For **Hugo v0.48** and newer, variables can be re-defined using the
-new `=` operator (new in Go 1.11).
-
-Below example will work only in these newer Hugo versions. The example
+Vriables can be re-defined using the `=` operator. The example below
prints "Var is Hugo Home" on the home page, and "Var is Hugo Page" on
all other pages:
diff --git a/docs/netlify.toml b/docs/netlify.toml
index 1074f59e4..0662c4f60 100644
--- a/docs/netlify.toml
+++ b/docs/netlify.toml
@@ -3,7 +3,7 @@ publish = "public"
command = "hugo --gc --minify"
[context.production.environment]
-HUGO_VERSION = "0.97.3"
+HUGO_VERSION = "0.98.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.97.3"
+HUGO_VERSION = "0.98.0"
HUGO_ENV = "production"
[context.deploy-preview]
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
[context.deploy-preview.environment]
-HUGO_VERSION = "0.97.3"
+HUGO_VERSION = "0.98.0"
[context.branch-deploy]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
[context.branch-deploy.environment]
-HUGO_VERSION = "0.97.3"
+HUGO_VERSION = "0.98.0"
[context.next.environment]
HUGO_ENABLEGITINFO = "true"