1
0
Fork 0

Move all opengraph (/twitter) metadata into one template

This makes it easier to modify & allows us to set title & description for specific types of pages.

Sets us up for #2575
This commit is contained in:
Andy Maloney 2023-01-11 16:17:41 -05:00
parent 5c8145b79d
commit b4aa39f0ed
6 changed files with 25 additions and 29 deletions

View file

@ -2,15 +2,13 @@
{% load feed_page_tags %}
{% load i18n %}
{% block opengraph_images %}
{% firstof status.book status.mention_books.first as book %}
{% if book %}
{% include 'snippets/opengraph_images.html' with image=preview %}
{% else %}
{% include 'snippets/opengraph_images.html' %}
{% endif %}
{% block opengraph %}
{% firstof status.book status.mention_books.first as book %}
{% if book %}
{% include 'snippets/opengraph.html' with image=preview %}
{% else %}
{% include 'snippets/opengraph.html' %}
{% endif %}
{% endblock %}
@ -44,4 +42,3 @@
</div>
{% endblock %}