diff --git a/src/components/BaseHead.astro b/src/components/BaseHead.astro
index dc474e8..35b3314 100644
--- a/src/components/BaseHead.astro
+++ b/src/components/BaseHead.astro
@@ -3,10 +3,11 @@ import { getImage } from 'astro:assets';
import { readSingleton } from '@directus/sdk';
import directus from '@lib/directus';
+import { SEO } from '@/config';
+
import brandSrc from '@images/brand_logo.png';
import faviconSvgSrc from '@images/favicon_icon.svg';
import faviconSrc from '@images/favicon_icon.png';
-import { SEO } from '@/config';
interface Props {
title: string;
@@ -18,6 +19,7 @@ interface Props {
}
const canonicalURL = Astro.url.href;
+
let {
title,
description,
@@ -27,14 +29,14 @@ let {
structuredData = SEO.structuredData,
} = Astro.props;
+const global = await directus.request(readSingleton('site_global'));
+
let card = 'summary_large_image';
if (!ogImage) {
ogImage = brandSrc;
card = 'summary';
}
-const global = await directus.request(readSingleton('site_global'));
-
const faviconSvg = await getImage({ src: faviconSvgSrc, format: 'svg' });
const appleTouchIcon = await getImage({ src: faviconSrc, width: 180, height: 180, format: 'png' });
const socialImageRes = await getImage({ src: ogImage, width: 1200, height: 600 });
@@ -62,12 +64,12 @@ if (!socialImage.startsWith('http')) {
+
-
@@ -76,17 +78,10 @@ if (!socialImage.startsWith('http')) {
-
-
-
-
-
-
-
-
+
diff --git a/src/components/Footer.astro b/src/components/Footer.astro
index c97ae49..2464ac3 100644
--- a/src/components/Footer.astro
+++ b/src/components/Footer.astro
@@ -1,13 +1,15 @@
---
import { readSingleton } from '@directus/sdk';
-import directus from '@lib/directus';
import BrandLogo from '@components/ui/logos/BrandLogo.astro';
import Image from '@components/ui/images/Image.astro';
+import directus from '@lib/directus';
import { NavigationLinks, FooterLinks } from '@/config';
+
import footerImg from '@images/flowers.png';
const global = await directus.request(readSingleton('site_global'));
+
const currentYear = new Date().getFullYear();
---