Fixed header link... again
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 9s

This commit is contained in:
2026-03-31 14:09:19 +02:00
parent b08ce97042
commit fd5dc46b97
2 changed files with 13 additions and 11 deletions

View File

@@ -1,9 +1,10 @@
---
// src/components/Footer.astro
import { getPath } from '../utils/paths';
const currentYear = new Date().getFullYear();
const startYear = 2026;
const displayYear = currentYear > startYear ? `${startYear}${currentYear}` : startYear;
import { getPath } from '../utils/paths';
---
<footer class="main-footer">

View File

@@ -1,17 +1,18 @@
---
import Logo from './Logo.astro';
import getPath from '../utils/paths';
// src/components/Header.astro
import Logo from "./Logo.astro";
import { getPath } from "../utils/paths";
const pathname = new URL(Astro.request.url).pathname;
const currentPath = pathname.slice(1);
---
<header class="main-header">
<div class="header-container">
<a href={getPath("/")} class="group flex items-center gap-2">
<Logo class="h-6 w-auto transition-colors" />
</a>
<!--
<div class="header-container">
<a href={getPath("/")} class="group flex items-center gap-2">
<Logo class="h-6 w-auto transition-colors" />
</a>
<!--
<nav>
<ul class="nav-list">
<li>
@@ -31,5 +32,5 @@ const currentPath = pathname.slice(1);
</li>
</ul>
</nav> -->
</div>
</div>
</header>