fix json ld

This commit is contained in:
2026-07-17 13:59:48 +03:00
parent 4d7e55bf90
commit d48835a270
6 changed files with 106 additions and 5 deletions
+13 -1
View File
@@ -30,7 +30,7 @@ og_description %}{{ config.extra.posts_page_subtitle | default(value="Exploring
"@type": "BlogPosting",
"@id": "{{ page.permalink | safe }}#article",
"headline": {{ page.title | json_encode | safe }},
"image": "{{ config.base_url | safe }}/images/og-image.png",
"image": "{{ config.base_url | safe }}{{ page.extra.image | default(value="/images/og-image.png") | safe }}",
"url": "{{ page.permalink | safe }}"
{% if page.date %},"datePublished": "{{ page.date | date(format="%+") }}"{% endif %}
}{% if not loop.last %},{% endif %}
@@ -39,6 +39,18 @@ og_description %}{{ config.extra.posts_page_subtitle | default(value="Exploring
}
</script>
<!-- SEO: BreadcrumbList JSON-LD -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{ "@type": "ListItem", "position": 1, "name": "Home", "item": "{{ config.base_url | safe }}/" },
{ "@type": "ListItem", "position": 2, "name": {{ posts_page_title | json_encode | safe }}, "item": "{{ config.base_url | safe }}/posts/" }
]
}
</script>
<!-- Pagination link hints for crawlers -->
{% if paginator.previous %}<link rel="prev" href="{{ paginator.previous }}" />{% endif %} {% if
paginator.next %}<link rel="next" href="{{ paginator.next }}" />{% endif %} {% endblock head %} {%