|
3 | 3 | "@context": "https://schema.org", |
4 | 4 | "@type": "CollectionPage", |
5 | 5 | "@id": "{{ app.url ~ path('page::category-resource', {slug: category.slug}) }}#webpage", |
6 | | - "url": "{{ app.url ~ path('page::category-resource', {slug: category.slug}) }}", |
7 | 6 | "name": "{{ category.name }}", |
| 7 | + "description": "Blog posts from the '{{ category.name }}' category.", |
| 8 | + "url": "{{ app.url ~ path('page::category-resource', {slug: category.slug}) }}", |
8 | 9 | "isPartOf": { "@id": "{{ app.url }}#website" }, |
9 | 10 | "mainEntity": { |
10 | 11 | "@type": "ItemList", |
| 12 | + "name": "Posts in '{{ category.name }}'", |
| 13 | + "numberOfItems": {{ data.items|length }}, |
11 | 14 | "itemListElement": [ |
12 | 15 | {% for article in data.items %}{% if not loop.first %},{% endif %} |
13 | 16 | { |
14 | 17 | "@type": "ListItem", |
15 | 18 | "position": {{ loop.index }}, |
16 | | - "url": "{{ app.url ~ path('page::blog-resource', {categorySlug: article.category.slug, slug: article.slug}) }}", |
17 | | - "name": "{{ article.title }}" |
| 19 | + "item": { |
| 20 | + "@type": "BlogPosting", |
| 21 | + "url": "{{ app.url ~ path('page::blog-resource', {categorySlug: article.category.slug, slug: article.slug}) }}", |
| 22 | + "heading": "{{ article.title }}", |
| 23 | + "author": { |
| 24 | + "@type": "Person", |
| 25 | + "name": "{{ article.author.name }}" |
| 26 | + } |
| 27 | + } |
18 | 28 | } |
19 | 29 | {% endfor %} |
20 | 30 | ] |
|
0 commit comments