diff options
| author | seth <[email protected]> | 2023-12-20 20:27:18 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-12-21 02:34:37 +0000 |
| commit | 5aa2e6c0c6e4c73d93307e9f70803237006afb28 (patch) | |
| tree | f26a67452e2d4a4ed30506e533ac17cc95184fac /src/components | |
| parent | 2a6f22fc1f1939b102fb8925bf04914a4b553e17 (diff) | |
go back to lume
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Footer.astro | 16 | ||||
| -rw-r--r-- | src/components/Head.astro | 12 | ||||
| -rw-r--r-- | src/components/Nav.astro | 34 | ||||
| -rw-r--r-- | src/components/PostList.astro | 15 |
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> |
