dev #3
@@ -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">
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user