fix: fix base path not applied to mobile nav menu
This commit is contained in:
parent
47c65cd551
commit
12e1b151a7
|
@ -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[],
|
||||
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue