mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-22 15:21:01 +00:00
15 lines
593 B
HTML
15 lines
593 B
HTML
|
{% load opengraph %}
|
||
|
{% with opengraph_merged=opengraph_local|dict_merge:opengraph_defaults %}
|
||
|
<!-- Begin OpenGraph tagging -->
|
||
|
{% for key, value in opengraph_merged.items %}
|
||
|
<meta content="{{ value|striptags }}" property="{{ key }}"/>
|
||
|
{% if key == "og:description" %}
|
||
|
{# Mastodon duplicates this one tag without the og: prefix. Not sure why #}
|
||
|
<meta content="{{ value|striptags }}" property="description"/>
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
{% block opengraph_extra %}
|
||
|
{% endblock %}
|
||
|
<!-- End OpenGraph tagging -->
|
||
|
{% endwith %}
|