diff options
Diffstat (limited to 'src/utils/schemas/websiteSchema.ts')
-rw-r--r-- | src/utils/schemas/websiteSchema.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/utils/schemas/websiteSchema.ts b/src/utils/schemas/websiteSchema.ts index bebb963..b971e5e 100644 --- a/src/utils/schemas/websiteSchema.ts +++ b/src/utils/schemas/websiteSchema.ts @@ -1,13 +1,15 @@ import type { WithContext, WebSite } from "schema-dts"; export type WebsiteSchemaParams = { + readonly description: string; readonly siteUrl: string; readonly title: string; }; -export default ({ siteUrl, title }: WebsiteSchemaParams): WithContext<WebSite> => ({ +export default ({ siteUrl, title, description }: WebsiteSchemaParams): WithContext<WebSite> => ({ "@context": "https://schema.org", "@type": "WebSite", "url": new URL("/", siteUrl).toString(), "name": title, + "description": description, }); |