Fix accordion logic

Signed-off-by: lucperkins <lucperkins@gmail.com>
This commit is contained in:
lucperkins 2020-03-09 14:59:34 -07:00
parent 90be3caa36
commit cc51bd3c03
1 changed files with 2 additions and 2 deletions

View File

@ -4,8 +4,8 @@
<div class="nav is-sticky is-hidden-touch"> <div class="nav is-sticky is-hidden-touch">
{{ range $docsSections }} {{ range $docsSections }}
{{ $thisSection := eq .CurrentSection $currentSection }} {{ $isThisSection := eq .CurrentSection.Title $currentSection.Title }}
<div class="nav-section" x-data="{ open: {{ $thisSection }} }"> <div class="nav-section" x-data="{ open: {{ $isThisSection }} }">
{{ $isHere := eq $here .RelPermalink }} {{ $isHere := eq $here .RelPermalink }}
{{ $title := .Title | upper }} {{ $title := .Title | upper }}
<nav class="level"> <nav class="level">