diff --git a/layouts/partials/language-switch.html b/layouts/partials/language-switch.html new file mode 100644 index 0000000..643aebf --- /dev/null +++ b/layouts/partials/language-switch.html @@ -0,0 +1,44 @@ +{{- $page := .context -}} + +{{- $grow := .grow -}} +{{- $hideLabel := .hideLabel | default false -}} + +{{- $changeLanguage := (T "changeLanguage") | default "Change language" -}} + +{{- if hugo.IsMultilingual -}} +
+ + +
+{{- end -}} \ No newline at end of file diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 6698f10..35b38df 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -40,7 +40,7 @@ {{ end -}} {{/* Hide theme switch when sidebar is disabled */}} - {{ $switchesClass := cond $disableSidebar "md:hx-hidden" "" -}} + {{- define "sidebar-main" -}}