fix: pass in the right page link

This commit is contained in:
Xin 2024-04-30 23:03:09 +01:00
parent a4bfa2d97e
commit 0da6f97e99

View File

@ -13,7 +13,7 @@
<li class="hextra-sidebar-item hx-flex hx-flex-col {{ if $shouldOpen }}open{{ end }}">
{{- partial "components/sidebar/item-link" (dict "active" $active "title" .title "link" .link "items" .items) -}}
{{- if .items -}}
{{- partial "components/sidebar/render-items" (dict "items" .items "link" .link "cached" $cached) -}}
{{- partial "components/sidebar/render-items" (dict "items" .items "link" $pageLink "cached" $cached) -}}
{{- end -}}
</li>
{{- end -}}