From 77e18d569fe5ba5f3a77d5eba788812bb9c13553 Mon Sep 17 00:00:00 2001 From: Louis Morgan Date: Thu, 19 Oct 2023 13:40:27 +0100 Subject: [PATCH] add 404.astro --- src/components/Home/Hero.astro | 7 +++---- src/content/pages/404.md | 18 ++++++++++++++++++ src/layouts/MainLayout.astro | 3 --- src/pages/404.astro | 30 ++++++++++++++++++++++++++++++ src/pages/[slug].astro | 5 ++++- src/pages/index.astro | 2 +- tailwind.config.cjs | 3 +-- 7 files changed, 57 insertions(+), 11 deletions(-) create mode 100644 src/content/pages/404.md create mode 100644 src/pages/404.astro diff --git a/src/components/Home/Hero.astro b/src/components/Home/Hero.astro index 65ee522..6ed9593 100644 --- a/src/components/Home/Hero.astro +++ b/src/components/Home/Hero.astro @@ -36,10 +36,9 @@ const blogLists = blogs {data.main_body}

View on Github diff --git a/src/content/pages/404.md b/src/content/pages/404.md new file mode 100644 index 0000000..e2db4da --- /dev/null +++ b/src/content/pages/404.md @@ -0,0 +1,18 @@ +--- +permalink: /404.html +title: 404 page not found! +description: > + 404 page not found +links: + - title: General Information + style: text-center + url: /about/ + - title: Governance + style: text-center + url: /governance/ + - title: News + style: text-center + url: /news/ + - title: Contact Us + url: https://www.linaro.org/contact/ +--- diff --git a/src/layouts/MainLayout.astro b/src/layouts/MainLayout.astro index 4ba93f2..eda3faf 100644 --- a/src/layouts/MainLayout.astro +++ b/src/layouts/MainLayout.astro @@ -12,7 +12,4 @@ import "../styles/global.scss";