summaryrefslogtreecommitdiff
path: root/website/src/layouts
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-06-18 19:21:59 +0100
committerJoe Carstairs <me@joeac.net>2026-06-18 19:21:59 +0100
commitca8e6824eaa711105f4092365792720c9dde026b (patch)
tree2b6493941352d11b799ee63d3f1311c13de649b8 /website/src/layouts
parenta0f25057283a397f006127b6f582d190d2c4294e (diff)
remove Astro website
Diffstat (limited to 'website/src/layouts')
-rw-r--r--website/src/layouts/BlogPost.astro51
-rw-r--r--website/src/layouts/MicrologPost.astro43
-rw-r--r--website/src/layouts/Page.astro21
3 files changed, 0 insertions, 115 deletions
diff --git a/website/src/layouts/BlogPost.astro b/website/src/layouts/BlogPost.astro
deleted file mode 100644
index 620bf81..0000000
--- a/website/src/layouts/BlogPost.astro
+++ /dev/null
@@ -1,51 +0,0 @@
----
-import BaseHead from '../components/BaseHead.astro';
-import FormattedDate from '../components/FormattedDate.astro';
-import Navbar from '../components/Navbar.astro';
-
-type Props = {
- title: string;
- description?: string;
- updatedDate?: Date;
- pubDate: Date;
-}
-
-const { title, description, pubDate, updatedDate } = Astro.props;
-
-const canonicalUrl = new URL(Astro.url.pathname, Astro.site);
----
-
-<html lang="en">
- <head>
- <BaseHead title={`${title} | joeac’s blog`} description={description} />
- <link rel="stylesheet" href="/css/post.css">
- </head>
-
- <body>
- <Navbar />
- <article class="h-entry">
- <aside>
- <span>
- This is a blog post by
- <a class="p-author h-card" href="/">Joe Carstairs</a>.
- </span>
- { updatedDate
- ? (
- <span>Updated: <FormattedDate date={updatedDate} className="dt-updated"/>.</span>
- <span>Originally published: <FormattedDate date={pubDate} className="dt-published"/>.</span>
- ) : <span>Published: <FormattedDate date={pubDate} className="dt-published"/>.</span>
- }
- <span hidden><a class="u-url uid" href={canonicalUrl}>Permalink</a></span>
- </aside>
-
- <header>
- <h1 class="h-name">{title}</h1>
- <p class="p-summary" set:html={description} />
- </header>
-
- <section class="e-content">
- <slot />
- </section>
- </article>
- </body>
-</html>
diff --git a/website/src/layouts/MicrologPost.astro b/website/src/layouts/MicrologPost.astro
deleted file mode 100644
index fa93011..0000000
--- a/website/src/layouts/MicrologPost.astro
+++ /dev/null
@@ -1,43 +0,0 @@
----
-import BaseHead from '../components/BaseHead.astro';
-import FormattedDate from '../components/FormattedDate.astro';
-import Navbar from '../components/Navbar.astro';
-
-type Props = {
- pubDate: Date;
- title: string;
-}
-
-const { pubDate, title } = Astro.props;
-
-const canonicalUrl = new URL(Astro.url.pathname, Astro.site);
----
-
-<html lang="en">
- <head>
- <BaseHead title={`${title} | joeac’s microlog`} description={`${title} | joeac's microlog`} />
- <link rel="stylesheet" href="/css/post.css">
- </head>
-
- <body>
- <Navbar />
- <article class="h-entry">
- <aside>
- <span>
- This is a <a href="/microlog">microlog</a> post by
- <a class="p-author h-card" href="/">Joe Carstairs</a>.
- </span>
- <span>Published: <FormattedDate date={pubDate} className="dt-published"/>.</span>
- <span hidden><a class="u-url uid" href={canonicalUrl}>Permalink</a></span>
- </aside>
-
- <header>
- <h1 class="h-name">{title}</h1>
- </header>
-
- <section class="e-content">
- <slot />
- </section>
- </article>
- </body>
-</html>
diff --git a/website/src/layouts/Page.astro b/website/src/layouts/Page.astro
deleted file mode 100644
index d41e58c..0000000
--- a/website/src/layouts/Page.astro
+++ /dev/null
@@ -1,21 +0,0 @@
----
-import BaseHead from "../components/BaseHead.astro";
-import Navbar from "../components/Navbar.astro";
-
-const { title, description } = Astro.props;
----
-
-<!DOCTYPE html>
-<html lang="en-GB">
- <head>
- <BaseHead title={title} description={description} />
- </head>
-
- <body>
- <Navbar />
- <main>
- <slot />
- </main>
- </body>
-</html>
-