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/blogSchema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils/schemas/blogSchema.ts') diff --git a/src/utils/schemas/blogSchema.ts b/src/utils/schemas/blogSchema.ts index 54e2fca..66a9bae 100644 --- a/src/utils/schemas/blogSchema.ts +++ b/src/utils/schemas/blogSchema.ts @@ -2,9 +2,9 @@ import type { WithContext, CollectionPage } from "schema-dts"; import type { CollectionEntry } from "astro:content"; export type BlogSchemaParams = { + readonly posts: CollectionEntry<"blog">[]; readonly siteUrl: string; readonly title: string; - readonly posts: CollectionEntry<"blog">[]; }; export default ({ siteUrl, title, posts }: BlogSchemaParams): WithContext => ({ -- cgit v1.2.3