fix: don't render menu on home page

The home page context is quite different from regular pages and
sections, so rendering the menu doesn't seem necessary. All the relevant
navigation is available in the main ui.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson 2024-01-28 23:18:33 +01:00
parent 840ccd5179
commit 733c95b5a7
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
<header class="sticky top-0 z-20 h-16 px-4 text-white bg-gradient-to-r from-accent-light to-blue-light-500 dark:from-accent-dark dark:to-blue-dark-100">
<div class="mx-auto flex h-full max-w-[1400px] items-center justify-between">
<div class="flex h-full items-center gap-8 md:gap-2">
{{ if not .IsHome }}
<button x-data tabindex="4" @click="() => {
$store.showSidebar = ! $store.showSidebar;
const sidebar = document.querySelector('#sidebar');
@ -12,6 +13,7 @@
}" class="icon-svg hidden px-4 md:block" aria-label="Menu">
{{ partial "icon" "menu" }}
</button>
{{ end }}
<div>
{{/* main logo */}}
<a href="{{ site.BaseURL }}">