{{- $context := .context -}} {{- $disableSidebar := .disableSidebar | default false -}} {{- $displayPlaceholder := .displayPlaceholder | default false -}} {{- $sidebarClass := cond $disableSidebar (cond $displayPlaceholder "md:hidden xl:block" "md:hidden") "md:sticky" -}} {{- $navRoot := cond (eq site.Home.Type "docs") site.Home $context.FirstSection -}} {{- $pageURL := $context.RelPermalink -}} {{ $data := partialCached "components/sidebar/read-data" $context $context.FirstSection }} {{ with $data }} {{ warnf "The data file for the sidebar is still unstable. Please use caution when upgrading." }}
{{ . | jsonify (dict "indent" " ") }}{{ else }} {{ end }} {{- define "partials/sidebar/mobile-search" -}}