From 261d89ebed13691e72312f44339063fee93130ac Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Sat, 30 Mar 2024 16:32:17 +0000 Subject: Astro initial commit --- src/components/BaseHead.astro | 44 ++++ src/components/BlogFeed.astro | 76 ++++++ src/components/FormattedDate.astro | 21 ++ src/components/Me.astro | 43 ++++ src/consts.ts | 2 + src/content/blog/2024/01/14/sapiens_on_religion.md | 77 ++++++ .../2024/01/29/euhwc_toast_to_the_lasses_2024.md | 261 +++++++++++++++++++++ src/content/blog/2024/03/30/easter.md | 108 +++++++++ src/content/config.ts | 19 ++ src/env.d.ts | 2 + src/layouts/BlogPost.astro | 47 ++++ src/layouts/Page.astro | 17 ++ src/pages/blog/[...slug].astro | 20 ++ src/pages/blog/index.astro | 17 ++ src/pages/error.astro | 14 ++ src/pages/index.astro | 11 + src/pages/rss.xml.js | 17 ++ 17 files changed, 796 insertions(+) create mode 100644 src/components/BaseHead.astro create mode 100644 src/components/BlogFeed.astro create mode 100644 src/components/FormattedDate.astro create mode 100644 src/components/Me.astro create mode 100644 src/consts.ts create mode 100644 src/content/blog/2024/01/14/sapiens_on_religion.md create mode 100644 src/content/blog/2024/01/29/euhwc_toast_to_the_lasses_2024.md create mode 100644 src/content/blog/2024/03/30/easter.md create mode 100644 src/content/config.ts create mode 100644 src/env.d.ts create mode 100644 src/layouts/BlogPost.astro create mode 100644 src/layouts/Page.astro create mode 100644 src/pages/blog/[...slug].astro create mode 100644 src/pages/blog/index.astro create mode 100644 src/pages/error.astro create mode 100644 src/pages/index.astro create mode 100644 src/pages/rss.xml.js (limited to 'src') diff --git a/src/components/BaseHead.astro b/src/components/BaseHead.astro new file mode 100644 index 0000000..e8e44ab --- /dev/null +++ b/src/components/BaseHead.astro @@ -0,0 +1,44 @@ +--- +interface Props { + title: string; + description: string; + image?: string; +} + +const canonicalURL = new URL(Astro.url.pathname, Astro.site); + +const { title, description, image = '/images/headshot.jpg' } = Astro.props; +--- + + + + + + + + + + + + + + + + +
+
+ + Hi! 👋 My name is Joe + Carstairs. I’m a + software developer at + Scott Logic, a + graduate of Philosophy and Mathematics at the University of Edinburgh, + a committed Christian and a pretty rubbish poet. +
+ ++ I’m also the secretary of the + Scots Language Society. + Help me maintain our website! +
+ ++ Email me at + joeacarstairs@gmail.com + with your thoughts on metaethics, Scots verse and eschatology. +
+ ++ Or get me on + Facebook, + Mastodon, + LinkedIn, + or GitHub. +
++ If you’re on this page, something’s probably gone wrong. Try going to + my homepage instead. +
+