]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
Squashed 'docs/' changes from 7030fe3a2..2d9da3a56
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 8 May 2022 14:56:42 +0000 (16:56 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 8 May 2022 14:56:42 +0000 (16:56 +0200)
2d9da3a56 Update build-options.md
5d910e24d Update introduction.md
111482a8d netlify: Hugo 0.98.0
d5505ca6f docs: Regen docs helper

git-subtree-dir: docs
git-subtree-split: 2d9da3a563a90eb8bc80dfb387b25a34b328329e

content/en/content-management/build-options.md
content/en/templates/introduction.md
data/docs.json
netlify.toml

index c3f6f04c941b5e94cd14bb58413759829020d917..7bbb772df2a31cc857e9a66bff5258885ad31a0e 100644 (file)
@@ -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 */}}
index 751ed3f29b4b642300f120c5039aba915cfe8af3..801df71ccb9c562c3ed6db82104f5452bf1ca23b 100644 (file)
@@ -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:
 
index ddd9e12469b2e2d6c58f8da342194cf1c868d81f..f573df44b9ffaf565f8cbeba4077ae0234078ef2 100644 (file)
           ],
           "Examples": []
         },
+        "LtCollate": {
+          "Description": "",
+          "Args": null,
+          "Aliases": null,
+          "Examples": null
+        },
         "Ne": {
           "Description": "Ne returns the boolean truth of arg1 != arg2 \u0026\u0026 arg1 != arg3 \u0026\u0026 arg1 != arg4.",
           "Args": [
         }
       },
       "crypto": {
+        "FNV32a": {
+          "Description": "",
+          "Args": null,
+          "Aliases": null,
+          "Examples": null
+        },
         "HMAC": {
           "Description": "HMAC returns a cryptographic hash that uses a key to sign a message.",
           "Args": [
index 1074f59e469404ec98fd06bd10ae2f31c2e19717..0662c4f60d7fc02fab4efdda38f77829c1ddd531 100644 (file)
@@ -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"