mirror of
https://github.com/andwati/andwati.com.git
synced 2026-10-26 21:02:16 +00:00
fix json ld
This commit is contained in:
+13
-1
@@ -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 %} {%
|
||||
|
||||
Reference in New Issue
Block a user