mirror of
https://github.com/valentineus/popov.link.git
synced 2025-07-04 00:20:26 +03:00
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.
This commit is contained in:
@ -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,
|
||||
});
|
||||
|
Reference in New Issue
Block a user