Skip to content

Commit dfcea93

Browse files
committed
Update Navigation.astro
1 parent e04c4b0 commit dfcea93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/components/Navigation.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const pathName = Astro.url.pathname.replace(/\/+$/, '')
3535
navigation?.links.map((section) => (
3636
<li x-init={((section.links.length ? pathName.includes(`/${section.slug}/`) : false) || (section.href === pathName)) ? `openSection = '${section.slug}'` : null}>
3737
<a
38-
href={section.links.length ? '#' : section.href}
38+
href={section.links.length ? '#!' : section.href}
3939
x-on:click={section.links.length ? `openSection = (openSection === '${section.slug}') ? null : '${section.slug}'; $nextTick(() => isInViewport($el) || $el.scrollIntoView({ behavior: 'auto', block: 'center', inline: 'center'}))` : null}
4040
class:list={[
4141
'block font-display cursor-pointer font-semibold transition duration-300 ease-out',
@@ -70,7 +70,7 @@ const pathName = Astro.url.pathname.replace(/\/+$/, '')
7070
class="relative"
7171
>
7272
<a
73-
href={link.links.length ? '#' : link.href}
73+
href={link.links.length ? '#!' : link.href}
7474
x-on:click={link.links.length ? `openLink = (openLink === '${link.slug}') ? null : '${link.slug}'; $nextTick(() => isInViewport($el) || $el.scrollIntoView({ behavior: 'auto', block: 'center', inline: 'center'}))` : null}
7575
class:list={[
7676
'group/navigation-mini-link block cursor-pointer w-full pl-3.5 before:pointer-events-none before:absolute before:-left-[5px] before:top-[6px] before:h-2 before:w-2 before:rounded-sm before:rotate-45 before:transition before:duration-200',

0 commit comments

Comments
 (0)