diff --git a/.astro/content.d.ts b/.astro/content.d.ts index 2e24b88..5772d5a 100644 --- a/.astro/content.d.ts +++ b/.astro/content.d.ts @@ -214,6 +214,6 @@ declare module 'astro:content' { LiveContentConfig['collections'][C]['loader'] >; - export type ContentConfig = typeof import("./../src/content/config.js"); + export type ContentConfig = typeof import("../src/content/config.js"); export type LiveContentConfig = never; } diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 55dd829..5ada5e3 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -1,5 +1,6 @@ --- import { profileConfig } from "../config"; + const currentYear = new Date().getFullYear(); --- diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro index 04dee21..984ea04 100644 --- a/src/components/Navbar.astro +++ b/src/components/Navbar.astro @@ -12,12 +12,12 @@ import NavMenuPanel from "./widget/NavMenuPanel.astro"; const className = Astro.props.class; let links: NavBarLink[] = navBarConfig.links.map( - (item: NavBarLink | LinkPreset): NavBarLink => { - if (typeof item === "number") { - return LinkPresets[item]; - } - return item; - }, + (item: NavBarLink | LinkPreset): NavBarLink => { + if (typeof item === "number") { + return LinkPresets[item]; + } + return item; + }, ); ---