Fix off-by-one error in new TOC logic, which was leading to bogus HTML.

This commit is contained in:
mtail 2018-06-04 08:10:42 -07:00
parent ef91e62aa6
commit 1ea444d9b3
1 changed files with 1 additions and 1 deletions

View File

@ -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 }}