dev #3
@@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
import Logo from './Logo.astro';
|
import Logo from './Logo.astro';
|
||||||
|
import getPath from '../utils/paths';
|
||||||
|
|
||||||
const pathname = new URL(Astro.request.url).pathname;
|
const pathname = new URL(Astro.request.url).pathname;
|
||||||
const currentPath = pathname.slice(1);
|
const currentPath = pathname.slice(1);
|
||||||
@@ -7,7 +8,7 @@ const currentPath = pathname.slice(1);
|
|||||||
|
|
||||||
<header class="main-header">
|
<header class="main-header">
|
||||||
<div class="header-container">
|
<div class="header-container">
|
||||||
<a href="/" class="group flex items-center gap-2">
|
<a href={getPath("/")} class="group flex items-center gap-2">
|
||||||
<Logo class="h-6 w-auto transition-colors" />
|
<Logo class="h-6 w-auto transition-colors" />
|
||||||
</a>
|
</a>
|
||||||
<!--
|
<!--
|
||||||
|
|||||||
Reference in New Issue
Block a user