From 86450b3dd8bec3b76e2b2a03b8cdc8a708c5f3bc Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+joeacarstairs@users.noreply.github.com> Date: Sun, 5 May 2024 21:00:40 +0100 Subject: Infrastructure as code (#3) * Moves website to website/ * Adds terraform gitignores * Terraform with AWS provider * Initialises Terraform * Locals and variables for provider * Fetches SSL certificate from ACM * S3 static website bucket * CloudFront distribution * Route53 records * Deployment workflow uses secret S3 bucket suffix * Adds README --------- Co-authored-by: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> --- website/src/components/BaseHead.astro | 44 ++++ website/src/components/BlogFeed.astro | 76 ++++++ website/src/components/FormattedDate.astro | 21 ++ website/src/components/Me.astro | 43 ++++ website/src/consts.ts | 2 + .../content/blog/2024/01/14/sapiens_on_religion.md | 77 ++++++ .../2024/01/29/euhwc_toast_to_the_lasses_2024.md | 261 +++++++++++++++++++++ website/src/content/blog/2024/03/30/easter.md | 98 ++++++++ website/src/content/config.ts | 19 ++ website/src/env.d.ts | 2 + website/src/layouts/BlogPost.astro | 50 ++++ website/src/layouts/Page.astro | 17 ++ website/src/pages/blog/[...slug].astro | 20 ++ website/src/pages/blog/index.astro | 17 ++ website/src/pages/error.astro | 14 ++ website/src/pages/index.astro | 11 + website/src/pages/rss.xml.js | 17 ++ .../src/content/blog/2024/04/10/tracking_pixels.md | 35 +++ 18 files changed, 824 insertions(+) create mode 100644 website/src/components/BaseHead.astro create mode 100644 website/src/components/BlogFeed.astro create mode 100644 website/src/components/FormattedDate.astro create mode 100644 website/src/components/Me.astro create mode 100644 website/src/consts.ts create mode 100644 website/src/content/blog/2024/01/14/sapiens_on_religion.md create mode 100644 website/src/content/blog/2024/01/29/euhwc_toast_to_the_lasses_2024.md create mode 100644 website/src/content/blog/2024/03/30/easter.md create mode 100644 website/src/content/config.ts create mode 100644 website/src/env.d.ts create mode 100644 website/src/layouts/BlogPost.astro create mode 100644 website/src/layouts/Page.astro create mode 100644 website/src/pages/blog/[...slug].astro create mode 100644 website/src/pages/blog/index.astro create mode 100644 website/src/pages/error.astro create mode 100644 website/src/pages/index.astro create mode 100644 website/src/pages/rss.xml.js create mode 100644 website/src/src/content/blog/2024/04/10/tracking_pixels.md (limited to 'website/src') diff --git a/website/src/components/BaseHead.astro b/website/src/components/BaseHead.astro new file mode 100644 index 0000000..e8e44ab --- /dev/null +++ b/website/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. +
+