From 67f245a48faf6e89989aca2ea571b657fd4c8888 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 11 Jun 2025 23:20:36 +0000 Subject: feat: integrate schema.org support and enhance component structure - Added schema.org support by introducing `schema-dts` for structured data in components. - Updated `Head`, `BaseLayout`, and various page components to accept and utilize schema props for better SEO. - Created new utility schemas for blog posts and website to standardize structured data implementation. - Enhanced the `SocialLinks` section by utilizing dedicated icon components for improved maintainability. - Refactored the `Header` component to improve accessibility and structure. - Introduced new icons for social links and integrated them into the layout. --- src/components/Sections/LatestPosts.astro | 10 ++++++-- src/components/Sections/SocialLinks.astro | 42 +++++++------------------------ src/components/Sections/Welcome.astro | 2 +- 3 files changed, 18 insertions(+), 36 deletions(-) (limited to 'src/components/Sections') diff --git a/src/components/Sections/LatestPosts.astro b/src/components/Sections/LatestPosts.astro index 070dc46..e91cb4c 100644 --- a/src/components/Sections/LatestPosts.astro +++ b/src/components/Sections/LatestPosts.astro @@ -1,6 +1,7 @@ --- import { getCollection } from "astro:content"; import dayjs from "dayjs"; +import RSSIcon from "../Icons/RSS.astro"; const posts = await getCollection("blog", ({ data }) => { return data.draft !== true; @@ -21,7 +22,7 @@ const latestPosts = posts.slice(0, 5);
-

Latest posts

+

Latest posts