From 9547f9a844cfdf07f4a0675d44d97dc68f48a168 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sat, 20 Apr 2024 13:37:44 +0100 Subject: [PATCH] fix: only replace explicit mobile menu links with automated links for Docs pages See https://discord.com/channels/722225264733716590/738924320339918858/1231150865977708605 --- .../layouts/partials/components/sidebar.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 }} +