rewrite nav
This commit is contained in:
parent
6249a0aba7
commit
5341fe58d0
18 changed files with 254 additions and 415 deletions
10
src/components/navigation/sidebars/nav/Link.astro
Normal file
10
src/components/navigation/sidebars/nav/Link.astro
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
interface Props {
|
||||
title: string;
|
||||
link: string;
|
||||
current?: boolean;
|
||||
}
|
||||
|
||||
const { title, link, current } = Astro.props;
|
||||
---
|
||||
<a class=`nav-component nav-item nav-link ${current ? "nav-current" : ""}` href={link}>{title}</a>
|
||||
Loading…
Add table
Add a link
Reference in a new issue