From 569b1614defd0f3088201fc5f90430ca40c69ec7 Mon Sep 17 00:00:00 2001 From: Chris Chinchilla Date: Fri, 26 Jul 2024 17:57:23 +0200 Subject: [PATCH] Rough support and contact pages --- netlify.toml | 6 +- public/robots.txt | 4 +- src/components/common/MetaTags.astro | 1 + src/components/widgets/Header.astro | 15 ++++- src/components/widgets/HeaderNoLogo.astro | 15 ++++- src/components/widgets/Note.astro | 2 +- ...community-volunteering.md => community.md} | 12 +++- src/pages/contact.mdx | 22 +++++++ src/pages/index.astro | 60 ++++++++----------- src/pages/support.md | 12 +--- 10 files changed, 96 insertions(+), 53 deletions(-) rename src/pages/{community-volunteering.md => community.md} (51%) create mode 100644 src/pages/contact.mdx diff --git a/netlify.toml b/netlify.toml index 01dabc37..d789976b 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,7 @@ [functions] node_bundler = "esbuild" - external_node_modules = ["sharp"] \ No newline at end of file + external_node_modules = ["sharp"] + +[[redirects]] + from = "/support" + to = "/contact" \ No newline at end of file diff --git a/public/robots.txt b/public/robots.txt index 6f27bb66..87648ba4 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1,2 +1,4 @@ User-agent: * -Disallow: \ No newline at end of file +Allow: / + +Sitemap: https://chrischinchilla.com/sitemap-index.xml \ No newline at end of file diff --git a/src/components/common/MetaTags.astro b/src/components/common/MetaTags.astro index 290c5678..35109afe 100644 --- a/src/components/common/MetaTags.astro +++ b/src/components/common/MetaTags.astro @@ -99,3 +99,4 @@ const image = + \ No newline at end of file diff --git a/src/components/widgets/Header.astro b/src/components/widgets/Header.astro index b7652436..116b6c9e 100644 --- a/src/components/widgets/Header.astro +++ b/src/components/widgets/Header.astro @@ -8,8 +8,19 @@ import { getHomePermalink, getBlogPermalink, getPermalink, getAsset } from '~/ut // TODO: Function const links = [ - { text: 'About', href: getPermalink('/about') }, - +{ + text: 'About', + links: [ + { + text: 'Contact', + href: getPermalink('/contact'), + }, + { + text: 'Community & volunteering', + href: getPermalink('/community'), + }, + ], + }, { text: 'Writing', links: [ diff --git a/src/components/widgets/HeaderNoLogo.astro b/src/components/widgets/HeaderNoLogo.astro index 4b56ee8d..2a1bed66 100644 --- a/src/components/widgets/HeaderNoLogo.astro +++ b/src/components/widgets/HeaderNoLogo.astro @@ -6,8 +6,19 @@ import ToggleMenu from '~/components/common/ToggleMenu.astro'; import { getHomePermalink, getBlogPermalink, getPermalink, getAsset } from '~/utils/permalinks'; // TODO: Function const links = [ - { text: 'About', href: getPermalink('/about') }, - +{ + text: 'About', + links: [ + { + text: 'Contact', + href: getPermalink('/contact'), + }, + { + text: 'Community & volunteering', + href: getPermalink('/community'), + }, + ], + }, { text: 'Writing', links: [ diff --git a/src/components/widgets/Note.astro b/src/components/widgets/Note.astro index 5783cf4d..37fad573 100644 --- a/src/components/widgets/Note.astro +++ b/src/components/widgets/Note.astro @@ -5,7 +5,7 @@ import json from '../../data/contact.json'; ---
-