mirror of
https://github.com/andwati/andwati.com.git
synced 2026-11-12 20:05:13 +00:00
fix json ld
This commit is contained in:
@@ -26,7 +26,7 @@ term.permalink }}{% endblock og_url %} {% block head %}
|
||||
"@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 %}
|
||||
@@ -34,6 +34,19 @@ term.permalink }}{% endblock og_url %} {% block head %}
|
||||
]
|
||||
}
|
||||
</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": "Tags", "item": "{{ config.base_url | safe }}/tags/" },
|
||||
{ "@type": "ListItem", "position": 3, "name": {{ term.name | json_encode | safe }}, "item": "{{ term.permalink | safe }}" }
|
||||
]
|
||||
}
|
||||
</script>
|
||||
{% endblock head %} {% block content %}
|
||||
<div class="post-detail">
|
||||
<header class="post-header list-page-header">
|
||||
|
||||
Reference in New Issue
Block a user