feat: enhance blog and SEO features with new plugins and metadata

- Introduced rehypeLazyImages plugin for lazy loading images in blog posts.
- Updated sitemap integration to include last modified dates for blog posts.
- Enhanced Head and BaseLayout components to support additional Open Graph metadata.
- Improved RSS feed generation with sanitized content and author information.
- Updated manifest.json for a darker theme and standalone display mode.
- Added support for language-specific attributes in various components.
- Refactored blog post handling to include modified and published timestamps.
This commit is contained in:
2026-04-22 17:53:21 +00:00
parent 5e818d804d
commit 933d6874b1
12 changed files with 1152 additions and 710 deletions
+5 -2
View File
@@ -8,17 +8,20 @@ import "../scss/global.scss";
type Props = {
readonly description: string;
readonly lang: string;
readonly modifiedTime?: string;
readonly ogType?: "website" | "article";
readonly preview: string;
readonly publishedTime?: string;
readonly robots?: string;
readonly schema: Thing[];
readonly title: string;
};
const { description, lang, preview, robots, schema, title } = Astro.props;
const { description, lang, modifiedTime, ogType, preview, publishedTime, robots, schema, title } = Astro.props;
---
<html lang={lang}>
<Head title={title} description={description} preview={preview} robots={robots} schema={schema} />
<Head title={title} description={description} preview={preview} robots={robots} schema={schema} lang={lang} ogType={ogType} publishedTime={publishedTime} modifiedTime={modifiedTime} />
<body>
<main>