Skip to content

Commit 6658043

Browse files
committed
expand reference section on load
1 parent ab95af3 commit 6658043

File tree

1 file changed

+1
-1
lines changed
  • themes/psh-docs/layouts/partials/sidebar

1 file changed

+1
-1
lines changed

themes/psh-docs/layouts/partials/sidebar/nav.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
{{ if $isHome }}
3030
{{ $inCurrentSection = false }}
3131
{{ end }}
32-
<div x-data="{ expanded: {{ $inCurrentSection }} }">
32+
<div x-data="{ expanded: {{ or $inCurrentSection (eq .section "home") }} }">
3333
<h3 class="font-semibold">
3434
<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 }}">
3535
{{ .title }}

0 commit comments

Comments
 (0)