Truncate OpenGraph description

This commit is contained in:
Kyle Maas 2022-11-30 14:38:31 +00:00
parent 7a29631a19
commit 967779d639

View File

@ -11,7 +11,7 @@
<meta property="og:title" content="{{media_object.title}} - {{PORTAL_NAME}}">
<meta property="og:url" content="{{FRONTEND_HOST}}{{media_object.get_absolute_url}}">
<meta property="og:description" content="{% if media_object.summary %}{{media_object.summary}}{% else %}{{media_object.description}}{% endif %}">
<meta property="og:description" content="{% if media_object.summary %}{{media_object.summary|truncatechars:300}}{% else %}{{media_object.description|truncatechars:300}}{% endif %}">
<meta property="og:updated_time" content="{{media_object.edit_date}}">
{% if media_object.media_type == "video" %}