From c957688809da63bb89c794804fcc86c66837394d Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Mon, 12 Jun 2023 19:12:23 +0200 Subject: [PATCH] feat: add schema.org data --- src/layouts/AboutLayout.astro | 22 ++++++++++++++++++++++ src/layouts/BaseLayout.astro | 8 ++++++++ src/pages/[...slug].astro | 29 +++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+) diff --git a/src/layouts/AboutLayout.astro b/src/layouts/AboutLayout.astro index 1c27fce..bc0b479 100644 --- a/src/layouts/AboutLayout.astro +++ b/src/layouts/AboutLayout.astro @@ -1,9 +1,30 @@ --- +import { site } from '../data/site'; + import GridLayout from './GridLayout.astro'; import PageTitle from '../components/PageTitle.astro'; import Picture from '../components/Picture.astro'; const { frontmatter } = Astro.props; +const schema = JSON.stringify({ + '@context': 'https://schema.org/', + '@type': 'Person', + name: site.author, + url: site.url, + image: site.url + '/assets/images/ai-portrait-stefan-imhoff.png', + jobTitle: 'Senior Software Engineer', + worksFor: { + '@type': 'Organization', + name: 'NEW WORK SE', + }, + sameAs: [ + 'https://twitter.com/kogakure', + 'https://www.instagram.com/kogakure/', + 'https://www.youtube.com/@kogakure', + 'https://www.linkedin.com/in/kogakure/', + 'https://github.com/kogakure', + ], +}); --- @@ -22,4 +43,5 @@ const { frontmatter } = Astro.props; /> + +