diff --git a/modules/blox-tailwind/layouts/partials/components/sidebar.html b/modules/blox-tailwind/layouts/partials/components/sidebar.html index e65085de..cd36ff9c 100644 --- a/modules/blox-tailwind/layouts/partials/components/sidebar.html +++ b/modules/blox-tailwind/layouts/partials/components/sidebar.html @@ -7,8 +7,12 @@ {{- $root_section := cond (eq site.Home.Type "docs") site.Home $context.FirstSection -}} {{- $page_url := $context.RelPermalink -}} -{{/* Classes appended to `hb-sidebar-mobile-menu` are modified via sidebar JS, so do not @apply them to `hb-sidebar-mobile-menu` */}} - +{{/* Only replace explicit mobile menu links with automated links for Docs pages */}} +{{ if not $no_sidebar }} + {{/* Classes appended to `hb-sidebar-mobile-menu` are modified via sidebar JS, so do not @apply them to `hb-sidebar-mobile-menu` */}} + +{{ end }} +