2023-07-22 13:18:15 +00:00
|
|
|
{% if home %}
|
|
|
|
<script type="application/ld+json">
|
|
|
|
{
|
|
|
|
"@context": "http://schema.org",
|
|
|
|
"@type": "WebSite",
|
|
|
|
"name": "{{ title }}",
|
2023-07-23 12:53:48 +00:00
|
|
|
"url": "{{ config.base_url }}",
|
2023-07-22 13:18:15 +00:00
|
|
|
"description": "{{ description }}",
|
2023-07-23 12:53:48 +00:00
|
|
|
"thumbnailUrl": "{{ config.base_url + "/logo.svg" }}",
|
2023-07-22 13:18:15 +00:00
|
|
|
}
|
|
|
|
</script>
|
2023-07-23 13:35:49 +00:00
|
|
|
{% elif post %}
|
2023-07-22 13:18:15 +00:00
|
|
|
<script type="application/ld+json">
|
|
|
|
{
|
|
|
|
"@context": "https://schema.org",
|
|
|
|
"@type": {{ config.schema.type }},
|
2023-07-23 08:47:23 +00:00
|
|
|
{% if section %}
|
|
|
|
"articleSection": {{ translate(section, language) }},
|
|
|
|
{% endif %}
|
|
|
|
|
2023-07-22 13:18:15 +00:00
|
|
|
{% if config.schema.type == 'TechArticle' %}
|
|
|
|
"proficiencyLevel": "Beginner",
|
|
|
|
{% endif %}
|
|
|
|
"name": {{ title }},
|
|
|
|
"headline": {{ title }},
|
|
|
|
"inLanguage": {{ language }},
|
2023-07-23 12:53:48 +00:00
|
|
|
"description": {{ description | striptags }},
|
2023-07-23 13:20:07 +00:00
|
|
|
"datePublished": {{ post.date }},
|
2023-07-22 13:18:15 +00:00
|
|
|
"author": {
|
|
|
|
"@type": "Person",
|
|
|
|
"name": {{ config.languages[language].author }},
|
2023-07-23 12:53:48 +00:00
|
|
|
"url": {{ config.base_url + "/" + language + "/about-author" }}
|
2023-07-22 13:18:15 +00:00
|
|
|
},
|
|
|
|
"publisher": {
|
|
|
|
"@type": "Organization",
|
|
|
|
"name": "{{ config.languages[language].title }}",
|
2023-07-23 12:53:48 +00:00
|
|
|
"url": {{ config.base_url }},
|
2023-07-22 13:18:15 +00:00
|
|
|
"logo": {
|
|
|
|
"@type": "ImageObject",
|
2023-07-23 12:53:48 +00:00
|
|
|
"url": {{ config.base_url + "/logo.svg" }}
|
2023-07-22 13:18:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
{% endif %}
|