AEO / SEO

This commit is contained in:
Timo Knuth
2026-01-23 14:39:27 +01:00
parent b00697bc37
commit cb521f2aee
39 changed files with 2217 additions and 114 deletions

View File

@@ -243,3 +243,33 @@ export function howToSchema(task: HowToTask) {
})),
};
}
export function articleSchema(article: { headline: string; description: string; image: string; datePublished: string; dateModified: string; author: string; url: string }) {
return {
'@context': 'https://schema.org',
'@type': 'Article',
'@id': `${article.url}#article`,
headline: article.headline,
description: article.description,
image: article.image,
datePublished: article.datePublished,
dateModified: article.dateModified,
inLanguage: 'en',
mainEntityOfPage: article.url,
author: {
'@type': 'Person',
name: article.author,
},
publisher: {
'@type': 'Organization',
name: 'QR Master',
url: 'https://www.qrmaster.net',
logo: {
'@type': 'ImageObject',
url: 'https://www.qrmaster.net/static/og-image.png',
width: 1200,
height: 630,
},
},
};
}