aboutsummaryrefslogtreecommitdiff
path: root/apps/website/src/components/shared
diff options
context:
space:
mode:
authorPauline <git@ethanlibs.co>2024-01-22 03:30:30 +0100
committerPauline <git@ethanlibs.co>2024-01-22 03:30:30 +0100
commit61ba9fd1f62cb959f197cf95c2686809318c6482 (patch)
tree44bec06175f1b833f2131d14f461cf288e5b9200 /apps/website/src/components/shared
parentfbaa87ef4fcad18ac03cb0cfa82fb106751c1b38 (diff)
downloadNexus-61ba9fd1f62cb959f197cf95c2686809318c6482.tar.gz
Nexus-61ba9fd1f62cb959f197cf95c2686809318c6482.tar.bz2
Nexus-61ba9fd1f62cb959f197cf95c2686809318c6482.zip
chore(deps): bump and format
Diffstat (limited to 'apps/website/src/components/shared')
-rw-r--r--apps/website/src/components/shared/BaseHead.astro15
-rw-r--r--apps/website/src/components/shared/SEO.astro22
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 {