We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab95af3 commit 6658043Copy full SHA for 6658043
themes/psh-docs/layouts/partials/sidebar/nav.html
@@ -29,7 +29,7 @@
29
{{ if $isHome }}
30
{{ $inCurrentSection = false }}
31
{{ end }}
32
- <div x-data="{ expanded: {{ $inCurrentSection }} }">
+ <div x-data="{ expanded: {{ or $inCurrentSection (eq .section "home") }} }">
33
<h3 class="font-semibold">
34
<button class="bg-no-repeat bg-right-2 w-[95%] py-4 pl-2 pr-6 my-2 text-left bg-grey" :style="expanded ? 'background-image: url(/images/icons/minus.svg);' : 'background-image: url(/images/icons/add.svg);'" @click="expanded = ! expanded" aria-controls="section-{{ .section }}" aria-expanded="{{ $inCurrentSection }}">
35
{{ .title }}
0 commit comments