diff options
Diffstat (limited to 'apps/website/src/components/shared')
| -rw-r--r-- | apps/website/src/components/shared/BaseHead.astro | 15 | ||||
| -rw-r--r-- | apps/website/src/components/shared/SEO.astro | 22 |
2 files changed, 17 insertions, 20 deletions
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<SEOMetadata> & { - type?: string + type?: string; }; type Twitter = Partial<SEOMetadata> & { - 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 { |
