From 17f9a467d7c0f427ae9d1cd579988a26615311c7 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Sat, 14 Jun 2025 11:25:17 +0000 Subject: refactor: update blog post date handling and schema - Replaced `pubDate` with `datePublished` in blog post components for consistency. - Updated sorting logic in blog sections to use `datePublished`. - Enhanced blog post schema to include `dateModified` for better structured data representation. - Adjusted various blog markdown files to reflect the new date fields. --- src/utils/schemas/websiteSchema.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/utils/schemas/websiteSchema.ts') 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 => ({ +export default ({ siteUrl, title, description }: WebsiteSchemaParams): WithContext => ({ "@context": "https://schema.org", "@type": "WebSite", "url": new URL("/", siteUrl).toString(), "name": title, + "description": description, }); -- cgit v1.2.3