From 61ba9fd1f62cb959f197cf95c2686809318c6482 Mon Sep 17 00:00:00 2001 From: Pauline Date: Mon, 22 Jan 2024 03:30:30 +0100 Subject: chore(deps): bump and format --- apps/website/src/components/shared/BaseHead.astro | 15 ++++++--------- apps/website/src/components/shared/SEO.astro | 22 +++++++++++----------- 2 files changed, 17 insertions(+), 20 deletions(-) (limited to 'apps/website/src/components/shared') diff --git a/apps/website/src/components/shared/BaseHead.astro b/apps/website/src/components/shared/BaseHead.astro index ddb94e3..bfe8f78 100644 --- a/apps/website/src/components/shared/BaseHead.astro +++ b/apps/website/src/components/shared/BaseHead.astro @@ -1,14 +1,11 @@ --- -import smartypants from 'smartypants'; -import SEO from './SEO.astro'; - export type Props = { - siteName: string - title?: string - description: string - image: { src: string, alt: string } - canonicalURL?: URL | null - pageType?: 'website' | 'article' + siteName: string; + title?: string; + description: string; + image: { src: string; alt: string }; + canonicalURL?: URL | null; + pageType?: 'website' | 'article'; }; const twitterHandle = 'polyfrost'; diff --git a/apps/website/src/components/shared/SEO.astro b/apps/website/src/components/shared/SEO.astro index 6169185..c3b8c52 100644 --- a/apps/website/src/components/shared/SEO.astro +++ b/apps/website/src/components/shared/SEO.astro @@ -2,26 +2,26 @@ import smartypants from 'smartypants'; type SEOMetadata = { - name?: string - title: string - description: string - image?: { src: string, alt: string } - canonicalURL?: URL | null - locale?: string + name?: string; + title: string; + description: string; + image?: { src: string; alt: string }; + canonicalURL?: URL | null; + locale?: string; }; type OpenGraph = Partial & { - type?: string + type?: string; }; type Twitter = Partial & { - handle?: string - card?: 'summary' | 'summary_large_image' + handle?: string; + card?: 'summary' | 'summary_large_image'; }; export type Props = SEOMetadata & { - og?: OpenGraph - twitter?: Twitter + og?: OpenGraph; + twitter?: Twitter; }; const { -- cgit