Skip to content

Commit 1371c45

Browse files
committed
Add richer Rich Data to Case Studies
1 parent 2f8c72e commit 1371c45

1 file changed

Lines changed: 46 additions & 12 deletions

File tree

_includes/promo-next.html

Lines changed: 46 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,53 @@
1111
<script type="application/ld+json">
1212
{
1313
"@context": "https://schema.org",
14-
15-
"@id": "{{ site.url }}{{ page.url }}#caseStudy",
16-
"@type": "CaseStudy",
17-
18-
"name": "{{ page.title }}",
14+
"@type": "BlogPosting",
15+
"mainEntityOfPage": {
16+
"@type": "WebPage",
17+
"@id": "https://csswizardry.com{{ page.permalink }}"
18+
},
1919
"headline": "{{ page.title }}",
20-
"url": "{{ site.url }}{{ page.url }}",
21-
22-
"author": { "@id": "{{ site.url }}#person" },
23-
"publisher": { "@id": "{{ site.url }}#org" },
24-
25-
"about": "{{ page.meta | default: page.excerpt | strip_html | truncate: 160 }}",
20+
"description": "{{ page.meta }}",
21+
"author": {
22+
"@type": "Person",
23+
"name": "Harry Roberts",
24+
"url": "https://csswizardry.com/about/"
25+
},
26+
"publisher": {
27+
"@type": "Organization",
28+
"name": "CSS Wizardry Ltd",
29+
"logo": {
30+
"@type": "ImageObject",
31+
"url": "https://csswizardry.com/img/csswizardry-logo.png"
32+
}
33+
},
34+
"articleSection": "Case Study"
35+
}
36+
</script>
2637

27-
"inLanguage": "en-GB"
38+
<script type="application/ld+json">
39+
{
40+
"@context": "https://schema.org",
41+
"@type": "BreadcrumbList",
42+
"itemListElement": [
43+
{
44+
"@type": "ListItem",
45+
"position": 1,
46+
"name": "Home",
47+
"item": "https://csswizardry.com/"
48+
},
49+
{
50+
"@type": "ListItem",
51+
"position": 2,
52+
"name": "Case Studies",
53+
"item": "https://csswizardry.com/case-studies/"
54+
},
55+
{
56+
"@type": "ListItem",
57+
"position": 3,
58+
"name": "{{ page.title }}",
59+
"item": "https://csswizardry.com{{ page.permalink }}"
60+
}
61+
]
2862
}
2963
</script>

0 commit comments

Comments
 (0)