|
| 1 | +<script type="application/ld+json"> |
| 2 | + { |
| 3 | + "@context": "https://schema.org", |
| 4 | + "@graph": [ |
| 5 | + { |
| 6 | + "@type": "TechArticle", |
| 7 | + "@id": "{{ absolute_url(path('page::blog-resource', {categorySlug: article.category.slug, slug: article.slug})) }}#article", |
| 8 | + "headline": {{ article.title|json_encode|raw }}, |
| 9 | + "description": {{ article.excerpt|json_encode|raw }}, |
| 10 | + "url": "{{ absolute_url(path('page::blog-resource', {categorySlug: article.category.slug, slug: article.slug})) }}", |
| 11 | + "mainEntityOfPage": "{{ absolute_url(path('page::blog-resource', {categorySlug: article.category.slug, slug: article.slug})) }}", |
| 12 | + "datePublished": "{{ article.postDate|date('c') }}", |
| 13 | + "dateModified": "{{ article.postDate|date('c') }}", |
| 14 | + "image": "{{ app.meta.image }}", |
| 15 | + "articleSection": {{ article.category.name|json_encode|raw }}, |
| 16 | + "author": { |
| 17 | + "@type": "Person", |
| 18 | + "name": {{ article.author.name|json_encode|raw }}, |
| 19 | + "url": "{{ absolute_url(path('page::author-resource', {slug: article.author.slug})) }}" |
| 20 | + }, |
| 21 | + "publisher": { |
| 22 | + "@type": "Organization", |
| 23 | + "name": "Dotkernel", |
| 24 | + "url": "{{ absolute_url('/') }}", |
| 25 | + "logo": { |
| 26 | + "@type": "ImageObject", |
| 27 | + "url": "{{ absolute_url(asset('images/app/dotkernel-logo.png')) }}" |
| 28 | + } |
| 29 | + } |
| 30 | + }, |
| 31 | + { |
| 32 | + "@type": "BreadcrumbList", |
| 33 | + "@id": "{{ absolute_url(path('page::blog-resource', {categorySlug: article.category.slug, slug: article.slug})) }}#breadcrumb", |
| 34 | + "itemListElement": [ |
| 35 | + { "@type": "ListItem", "position": 1, "name": "Home", "item": "{{ absolute_url('/') }}" }, |
| 36 | + { "@type": "ListItem", "position": 2, "name": {{ article.category.name|json_encode|raw }}, "item": "{{ absolute_url(path('page::category-resource', {slug: article.category.slug})) }}" }, |
| 37 | + { "@type": "ListItem", "position": 3, "name": {{ article.title|json_encode|raw }} } |
| 38 | + ] |
| 39 | + }, |
| 40 | + { |
| 41 | + "@type": "FAQPage", |
| 42 | + "@id": "{{ absolute_url(path('page::blog-resource', {categorySlug: article.category.slug, slug: article.slug})) }}#faq", |
| 43 | + "mainEntity": [ |
| 44 | + { "@type": "Question", "name": "What is this article for?", "acceptedAnswer": { "@type": "Answer", "text": "This is a test article added to the Dotkernel category for fixture and testing purposes." } } |
| 45 | + ] |
| 46 | + } |
| 47 | + ] |
| 48 | + } |
| 49 | +</script> |
0 commit comments