- Changed schema type from WithContext<Thing> to Thing[] in Head, BaseLayout, and JsonLd components for better flexibility. - Added optional robots meta tag to Head component. - Updated JSON-LD generation in JsonLd component to include a structured payload. - Enhanced page and blog schemas to support breadcrumb and person schemas for improved SEO. - Introduced new utility schemas for website and person to streamline schema generation. - Refactored existing schemas to align with the new structure and ensure consistency across components.
26 lines
1.2 KiB
Plaintext
26 lines
1.2 KiB
Plaintext
---
|
||
import { config } from "../config";
|
||
import LatestPostsSection from "../components/Sections/LatestPosts.astro";
|
||
import Layout from "../layouts/BaseLayout.astro";
|
||
import pageSchema from "../utils/schemas/pageSchema";
|
||
import personSchema from "../utils/schemas/personSchema";
|
||
import SocialLinksSection from "../components/Sections/SocialLinks.astro";
|
||
import WelcomeSection from "../components/Sections/Welcome.astro";
|
||
import websiteSchema from "../utils/schemas/websiteSchema";
|
||
|
||
const title = "Valentin Popov – Software Developer & Team Lead | Tech Insights";
|
||
const description = "Blog by Valentin Popov — software developer and team lead writing about code, side projects, digital tools, and fun experiments.";
|
||
const preview = config.og.defaultPreview;
|
||
const lang = "en";
|
||
|
||
const siteUrl = new URL("/", Astro.site).toString();
|
||
|
||
const schema = [websiteSchema({ siteUrl, name: config.og.website, description, lang }), personSchema({ siteUrl }), pageSchema({ siteUrl, page: "/", title, description, lang, type: "ProfilePage" })];
|
||
---
|
||
|
||
<Layout title={title} description={description} preview={preview} lang={lang} schema={schema}>
|
||
<WelcomeSection />
|
||
<SocialLinksSection />
|
||
<LatestPostsSection />
|
||
</Layout>
|