Reworked user state and login
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
---
|
||||
const {href} = Astro.props
|
||||
const isActive = Astro.url.pathname.startsWith(href)
|
||||
---
|
||||
|
||||
<a class:list={[{active: isActive}]} href={href}>
|
||||
<slot></slot>
|
||||
</a>
|
||||
Reference in New Issue
Block a user