Add JSON-LD support to entries too, mostly so Google can understand the site a little better
This commit is contained in:
parent
371401d441
commit
7090db3c37
3 changed files with 34 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue