Skip to content

Commit

Permalink
reference: fix navbar bugging out on templates
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
l-zeuch committed Jun 8, 2024
1 parent 049a8c3 commit 99b6c0b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions content/reference/templates/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
+++
archetype = "chapter"
title = "Templates"
archetype = "default"
title = 'Templates'
weight = 1
+++

Expand Down Expand Up @@ -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.\

<pre class="language-go"><code class="lang-go">{{/* range over an integer */}}
```go
{{/* range over an integer */}}
{{range 2}}{{.}}{{end}}
{{range $k, $v := toInt64 2}}{{$k}}{{$v}}{{end}}
**{{/* range over a slice */}}
Expand All @@ -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 }}
`</pre>
```

{{% notice warning %}}

Expand Down

0 comments on commit 99b6c0b

Please sign in to comment.