Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugoDocs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-04-28 21:21:58 +0300
committerGitHub <noreply@github.com>2022-04-28 21:21:58 +0300
commit5d910e24d24a30b7d1cbd29b913f06b959ffe614 (patch)
treec6528da35f21d18c45c459d0aeea08e29f0a8e13
parent111482a8dea28a2086a44f242ddd4068504c63df (diff)
Update introduction.md
-rw-r--r--content/en/templates/introduction.md14
1 files changed, 1 insertions, 13 deletions
diff --git a/content/en/templates/introduction.md b/content/en/templates/introduction.md
index 751ed3f29..801df71cc 100644
--- a/content/en/templates/introduction.md
+++ b/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: