summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Footer.astro16
-rw-r--r--src/components/Head.astro12
-rw-r--r--src/components/Nav.astro34
-rw-r--r--src/components/PostList.astro15
4 files changed, 0 insertions, 77 deletions
diff --git a/src/components/Footer.astro b/src/components/Footer.astro
deleted file mode 100644
index 0a244c0..0000000
--- a/src/components/Footer.astro
+++ /dev/null
@@ -1,16 +0,0 @@
----
-import { execa } from "execa";
-import "@styles/global.sass";
-
-const { stdout: gitCommit } = await execa("git", ["rev-parse", "HEAD"]);
----
-
-<div class="flex">
- <div class="flex flex-col items-center gap-1 p-3 mx-auto">
- <a
- class="text-text text-xs"
- href="https://github.com/getchoo/getchoo.github.io">source</a
- >
- <p class="text-text text-xs">commit: {gitCommit}</p>
- </div>
-</div>
diff --git a/src/components/Head.astro b/src/components/Head.astro
deleted file mode 100644
index 0cce769..0000000
--- a/src/components/Head.astro
+++ /dev/null
@@ -1,12 +0,0 @@
----
-const { title, description } = Astro.props;
----
-
-<head>
- <meta charset="utf-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <title>{title}</title>
- <meta name="description" content={description} />
- <meta name="viewport" content="width=device-width, initial-scale=1" />
- <link rel="sitemap" href="/sitemap-index.xml" />
-</head>
diff --git a/src/components/Nav.astro b/src/components/Nav.astro
deleted file mode 100644
index 66ac87e..0000000
--- a/src/components/Nav.astro
+++ /dev/null
@@ -1,34 +0,0 @@
----
-interface Links {
- home: string;
- blog: string;
- forgejo: string;
- grafana: string;
- github: string;
- miniflux: string;
-}
-
-const links: Links = {
- home: "/",
- blog: "/blog",
- grafana: "https://grafana.mydadleft.me",
- miniflux: "https://miniflux.mydadleft.me",
- github: "https://github.com/getchoo",
-};
----
-
-<nav>
- <div class="flex flex-column justify-center mx-auto p-7">
- <ul class="inline">
- {
- Object.entries(links).map(([link, url]) => (
- <li class="inline text-base p-2">
- <a class="rounded-xl bg-yellow p-2" href={url}>
- {link}
- </a>
- </li>
- ))
- }
- </ul>
- </div>
-</nav>
diff --git a/src/components/PostList.astro b/src/components/PostList.astro
deleted file mode 100644
index a537e43..0000000
--- a/src/components/PostList.astro
+++ /dev/null
@@ -1,15 +0,0 @@
----
-const posts = await Astro.glob("../pages/blog/posts/*.md");
----
-
-<div>
- <ul class="postList">
- {
- posts.map((post) => (
- <li>
- <a href={post.url}>{post.frontmatter.title}</a>
- </li>
- ))
- }
- </ul>
-</div>