Tilbage til Schema
📰
Article Schema
Optimer blog posts og artikler med structured data for bedre visning i søgeresultater
Hvad er Article Schema?
Article schema bruges til blog posts, nyhedsartikler og andet skrevet indhold. Det hjælper Google med at forstå forfatter, publiceringsdato, billeder og artikel struktur.
Fordele:
- • Rich snippets med forfatter og dato
- • Featured snippets mulighed
- • Google Discover eligibility
- • AMP article support
- • Top Stories carousel (for nyhedssites)
Article Types
Article
Standard blog posts og generelle artikler
NewsArticle
Nyhedsartikler og pressmeddelelser
BlogPosting
Specifikt til blog posts
Required Properties
headline
Artikel overskrift (max 110 tegn)
image
Featured image (min 1200px bred)
datePublished
ISO 8601 format dato
author
Forfatter (Person eller Organization)
Basic Example
Minimal Article Schema
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "Guide til SEO Optimering",
"image": "https://example.com/article-image.jpg",
"datePublished": "2024-01-15",
"author": {
"@type": "Person",
"name": "Anders Andersen"
}
}
Complete Example
Fuldt Article Schema
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "Guide til SEO Optimering i 2024",
"alternativeHeadline": "Den komplette SEO guide",
"image": [
"https://example.com/article-16x9.jpg",
"https://example.com/article-4x3.jpg",
"https://example.com/article-1x1.jpg"
],
"datePublished": "2024-01-15T08:00:00+00:00",
"dateModified": "2024-02-20T10:30:00+00:00",
"author": {
"@type": "Person",
"name": "Anders Andersen",
"url": "https://example.com/author/anders"
},
"publisher": {
"@type": "Organization",
"name": "SEO Eksperterne",
"logo": {
"@type": "ImageObject",
"url": "https://example.com/logo.png"
}
},
"description": "Lær de vigtigste SEO teknikker...",
"articleBody": "Fuld artikel tekst...",
"wordCount": 1500,
"keywords": ["SEO", "optimering", "søgemaskiner"],
"articleSection": "SEO Guides",
"inLanguage": "da-DK",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https://example.com/article"
}
}
Next.js Implementation
// app/blog/[slug]/page.tsx
export default function BlogPost({ params }) {
// Hent artikel data
const article = getArticle(params.slug);
const articleSchema = {
"@context": "https://schema.org",
"@type": "Article",
"headline": article.title,
"image": article.featuredImage,
"datePublished": article.publishedAt,
"dateModified": article.updatedAt,
"author": {
"@type": "Person",
"name": article.author.name,
},
"publisher": {
"@type": "Organization",
"name": "Dit Site Navn",
"logo": {
"@type": "ImageObject",
"url": "https://example.com/logo.png"
}
},
"description": article.excerpt,
"mainEntityOfPage": {
"@type": "WebPage",
"@id": `https://example.com/blog/${params.slug}`
}
};
return (
<>
<script
type="application/ld+json"
dangerouslySetInnerHTML={{
__html: JSON.stringify(articleSchema)
}}
/>
<article>
<h1>{article.title}</h1>
{/* Artikel indhold */}
</article>
</>
);
}
Image Requirements
Google's Image Guidelines:
- • Minimum bredde: 1200px
- • Format: JPG, PNG, eller WebP
- • Aspect ratios: 16x9, 4x3, og 1x1 (anbefalet alle tre)
- • Max størrelse: 5MB per billede
- • Kvalitet: High resolution, skarpt billede
- • Relevant: Billede skal relatere til artikel
Tip: Inkluder 3 versioner af dit billede i forskellige aspect ratios for optimal visning på alle platforme.
Multiple Authors
Hvis artiklen har flere forfattere, brug et array:
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "Artikel Titel",
"author": [
{
"@type": "Person",
"name": "Anders Andersen",
"url": "https://example.com/author/anders"
},
{
"@type": "Person",
"name": "Maria Madsen",
"url": "https://example.com/author/maria"
}
]
}
NewsArticle for Nyhedssites
Brug NewsArticle type for nyheder og pressmeddelelser:
{
"@context": "https://schema.org",
"@type": "NewsArticle",
"headline": "Breaking: Ny SEO opdatering",
"datePublished": "2024-01-15T08:00:00+00:00",
"dateline": "København, Danmark",
"image": "https://example.com/news.jpg",
"author": {
"@type": "Person",
"name": "Journalist Navn"
},
"publisher": {
"@type": "Organization",
"name": "Nyheds Site",
"logo": {
"@type": "ImageObject",
"url": "https://example.com/logo.png"
}
}
}
Best Practices
✓ Gør dette
- • Brug high-quality featured images
- • Inkluder publisher information
- • Opdater dateModified ved ændringer
- • Brug real forfatter navne
- • Inkluder article description
- • Test med Rich Results Tool
✗ Undgå dette
- • Små eller low-quality billeder
- • Forkerte datoer
- • Manglende forfatter info
- • For lange headlines (>110 tegn)
- • Irrelevante billeder
- • Duplicate schema på samme side