Add JSON-LD support to entries too, mostly so Google can understand the site a little better

This commit is contained in:
Danielle McLean 2017-10-31 14:51:50 +11:00
parent 371401d441
commit 7090db3c37
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
3 changed files with 34 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{% load friendly_url humanize markdown shortlink %}<article class="card h-entry">
{% load friendly_url humanize jsonify markdown shortlink %}<article class="card h-entry">
{% if entry.photo %}<img class="card-img-top u-photo" src="{{ entry.photo.url }}" />{% endif %}
<div class="card-body">
{% if entry.name %}<h4 class="card-title p-name">{{ entry.name }}</h4>{% endif %}
@ -32,4 +32,5 @@
</a>
{% endfor %}
</div>
<script class="p-json-ld" type="application/ld+json">{{ entry.json_ld | jsonify }}</script>
</article>