flex/templates/partial/jsonld_article.html

24 lines
742 B
HTML
Raw Permalink Normal View History

2015-07-20 06:52:02 +02:00
{% if SITELOGO %}
{% set default_cover = SITELOGO %}
{% else %}
2015-08-21 07:25:56 +02:00
{% set default_cover = '{{ SITEURL }}/{{ THEME_STATIC_DIR }}/img/profile.png' %}
2015-07-20 06:52:02 +02:00
{% endif %}
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "BlogPosting",
"name": "{{ article.title|striptags }}",
"headline": "{{ article.title|striptags }}",
2015-07-20 06:52:02 +02:00
"datePublished": "{{ article.date }}",
"dateModified": "{{ article.modified }}",
"author": {
"@type": "Person",
"name": "{{ article.author.name }}",
"url": "{{ SITEURL }}/{{ article.author.url }}"
},
"image": "{{ article.metadata.get('cover', default_cover) }}",
"url": "{{ SITEURL }}/{{ article.url }}",
"description": "{{ article.summary|striptags }}"
}
</script>