From 66489e5274f4b723d5b20b51271a445420ef68fc Mon Sep 17 00:00:00 2001 From: Xin Date: Tue, 30 Apr 2024 23:56:57 +0100 Subject: [PATCH] chore: use index as fallback option --- layouts/partials/components/sidebar/get-section-data.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/components/sidebar/get-section-data.html b/layouts/partials/components/sidebar/get-section-data.html index 1aca25a..8b073a8 100644 --- a/layouts/partials/components/sidebar/get-section-data.html +++ b/layouts/partials/components/sidebar/get-section-data.html @@ -4,7 +4,7 @@ directory. For example, the English sidebar data is stored in `data/en/sidebar.yaml`. */}} {{ $data := "" }} -{{ $section := .Section | default "" }} +{{ $section := .Section | default "index" }} {{ $filename := "sidebar" }} {{ if hugo.IsMultilingual }}