From 2cbc22348ef038181e1dc89635a3be005604a4ca Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 12 Feb 2024 20:29:15 -0500 Subject: back to astro --- src/components/Footer.astro | 30 ++++++++++++++++++++++++++++++ src/components/Head.astro | 23 +++++++++++++++++++++++ src/components/Nav.astro | 28 ++++++++++++++++++++++++++++ 3 files changed, 81 insertions(+) create mode 100644 src/components/Footer.astro create mode 100644 src/components/Head.astro create mode 100644 src/components/Nav.astro (limited to 'src/components') diff --git a/src/components/Footer.astro b/src/components/Footer.astro new file mode 100644 index 0000000..4f7286f --- /dev/null +++ b/src/components/Footer.astro @@ -0,0 +1,30 @@ +--- +import { execa } from "execa"; +import Picture from "astro/components/Picture.astro"; +import gifs from "@assets/gifs"; + +const { stdout: gitCommit } = await execa("git", ["rev-parse", "HEAD"]); +--- + + diff --git a/src/components/Head.astro b/src/components/Head.astro new file mode 100644 index 0000000..f2f7835 --- /dev/null +++ b/src/components/Head.astro @@ -0,0 +1,23 @@ +--- +import "@fontsource-variable/noto-sans"; +import "@fontsource/noto-sans-mono"; +const { title, description } = Astro.props; +--- + + + + {title} + + + + + diff --git a/src/components/Nav.astro b/src/components/Nav.astro new file mode 100644 index 0000000..c08662d --- /dev/null +++ b/src/components/Nav.astro @@ -0,0 +1,28 @@ +--- +import config from "@root/astro.config.ts"; + +interface NavLink { + name: string; + url: string; +} + +const links: NavLink[] = [ + { name: "home", url: "/" }, + { + name: "miniflux", + url: `https://miniflux.${Astro.url.hostname || config.site}`, + }, + { + name: "github", + url: "https://github.com/getchoo", + }, +]; +--- + + -- cgit v1.2.3