chore: add experimental flag for hiding sidebar

This commit is contained in:
Xin 2024-05-01 00:02:05 +01:00
parent 66489e5274
commit 9e7b13a0da

View File

@ -21,6 +21,11 @@
{{- $shouldCache := site.Params.page.sidebar.cache | default false -}}
{{/* EXPERIMENTAL */}}
{{- if .context.Params.sidebar.hide -}}
{{- $disableSidebar = true -}}
{{- $displayPlaceholder = true -}}
{{- end -}}
<div class="mobile-menu-overlay [transition:background-color_1.5s_ease] hx-fixed hx-inset-0 hx-z-10 hx-bg-black/80 dark:hx-bg-black/60 hx-hidden"></div>