Skip to content

Commit

Permalink
fix: fix base path not applied to mobile nav menu
Browse files Browse the repository at this point in the history
  • Loading branch information
saicaca committed May 24, 2024
1 parent 47c65cd commit 12e1b15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/widget/NavMenuPanel.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
import {NavBarLink} from "../../types/config";
import {siteConfig} from "../../config";
import {Icon} from "astro-icon/components";
import {url} from "../../utils/url-utils";
interface Props {
links: NavBarLink[],
Expand All @@ -11,7 +11,7 @@ const links = Astro.props.links;
---
<div id="nav-menu-panel" class:list={["float-panel float-panel-closed absolute transition-all fixed right-4 px-2 py-2"]}>
{links.map((link) => (
<a href={link.url} class="group flex justify-between items-center py-2 pl-3 pr-1 rounded-lg gap-8
<a href={link.external ? link.url : url(link.url)} class="group flex justify-between items-center py-2 pl-3 pr-1 rounded-lg gap-8
hover:bg-[var(--btn-plain-bg-hover)] active:bg-[var(--btn-plain-bg-active)] transition
"
target={link.external ? "_blank" : null}
Expand Down

0 comments on commit 12e1b15

Please sign in to comment.