From 99b6c0b7cace2d19f9772769cecf1d3137099017 Mon Sep 17 00:00:00 2001 From: Luca Zeuch Date: Sat, 8 Jun 2024 11:59:32 +0200 Subject: [PATCH] reference: fix navbar bugging out on templates Fix the navbar bugging out when viewing the Templates page; the from the GitBook migrated page had some raw HTML in there that broke it visually (and by extension functionally). Signed-off-by: Luca Zeuch --- content/reference/templates/_index.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/content/reference/templates/_index.md b/content/reference/templates/_index.md index d0578ef..81231d1 100644 --- a/content/reference/templates/_index.md +++ b/content/reference/templates/_index.md @@ -1,6 +1,6 @@ +++ -archetype = "chapter" -title = "Templates" +archetype = "default" +title = 'Templates' weight = 1 +++ @@ -360,7 +360,8 @@ case of only one variable, it is assigned the element.\ \ Like `if`, `range`is concluded with`{{end}}`action and declared variable scope inside `range` extends to that point.\ -
{{/* range over an integer */}}
+```go
+{{/* range over an integer */}}
 {{range 2}}{{.}}{{end}}
 {{range $k, $v := toInt64 2}}{{$k}}{{$v}}{{end}}
 **{{/* range over a slice */}}
@@ -372,7 +373,7 @@ Like `if`, `range`is concluded with`{{end}}`action and declared variable scope i
 {{/* range with else and variable scope */}}
 {{ range seq 1 1 }} no output {{ else }} output here {{ end }}
 {{ $x := 42 }} {{ range $x := seq 2 4 }} {{ $x }} {{ end }} {{ $x }}
-`
+``` {{% notice warning %}}