chore: use index as fallback option

This commit is contained in:
Xin 2024-04-30 23:56:57 +01:00
parent 2004648076
commit 66489e5274

View File

@ -4,7 +4,7 @@
directory. For example, the English sidebar data is stored in `data/en/sidebar.yaml`. directory. For example, the English sidebar data is stored in `data/en/sidebar.yaml`.
*/}} */}}
{{ $data := "" }} {{ $data := "" }}
{{ $section := .Section | default "" }} {{ $section := .Section | default "index" }}
{{ $filename := "sidebar" }} {{ $filename := "sidebar" }}
{{ if hugo.IsMultilingual }} {{ if hugo.IsMultilingual }}