diff --git a/src/components/ContactForm.astro b/src/components/ContactForm.astro index 869b126..1ec30d7 100644 --- a/src/components/ContactForm.astro +++ b/src/components/ContactForm.astro @@ -86,6 +86,7 @@ const { id: ID = "contact-form" } = Astro.props; const loadingIcon = form.querySelector( `#${CSS.escape(ID + "-loading-icon")}` ); + if (!responseMsg || !button || !loadingIcon) return; form.addEventListener("submit", async function (event) { event.preventDefault(); diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 0286d2d..33aa615 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -62,5 +62,6 @@ import TextLink from "@components/TextLink.astro"; diff --git a/src/components/SEO.astro b/src/components/SEO.astro index 98abdbb..aadedd7 100644 --- a/src/components/SEO.astro +++ b/src/components/SEO.astro @@ -7,6 +7,7 @@ interface Props { } const { title, description, url = Astro.url, image } = Astro.props; +const canonicalUrl = url.toString(); import person from "@data/person"; import site from "@data/site"; @@ -15,7 +16,7 @@ import { Schema } from "astro-seo-schema"; --- - + - + { includeExternalLinkIcon && linkIsExternal && ( - + Other ways to reach me - + nathan@nathancummins.com.au - + PO Box 2112 Regency Park SA 5942