mirror of https://github.com/istio/istio.io.git
Fix off-by-one error in new TOC logic, which was leading to bogus HTML.
This commit is contained in:
parent
ef91e62aa6
commit
1ea444d9b3
|
@ -20,7 +20,7 @@
|
|||
{{ if gt $level $current }}
|
||||
<ul>
|
||||
{{ else if lt $level $current }}
|
||||
{{ $delta := sub ($page.Scratch.Get "level") $level }}
|
||||
{{ $delta := sub (sub ($page.Scratch.Get "level") $level) 1 }}
|
||||
{{ range $index, $num := (seq $delta) }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue