jsonld_article.html 771 B

1234567891011121314151617181920212223
  1. {% if SITELOGO %}
  2. {% set default_cover = SITEURL + '/' + SITELOGO %}
  3. {% else %}
  4. {% set default_cover = SITEURL + '/' + 'favicon.ico' %}
  5. {% endif %}
  6. <script type="application/ld+json">
  7. {
  8. "@context": "http://schema.org",
  9. "@type": "BlogPosting",
  10. "name": "{{ article.title|striptags }}",
  11. "headline": "{{ article.title|striptags }}",
  12. "datePublished": "{{ article.date }}",
  13. "dateModified": "{{ article.modified }}",
  14. "author": {
  15. "@type": "Person",
  16. "name": "{{ article.author.name }}",
  17. "url": "{{ SITEURL }}/{{ article.author.url }}"
  18. },
  19. "image": "{{ article.metadata.get('cover', default_cover) }}",
  20. "url": "{{ SITEURL }}/{{ article.url }}",
  21. "description": "{{ article.summary|striptags }}"
  22. }
  23. </script>