mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-11-25 01:34:51 +01:00
Truncate OpenGraph description
This commit is contained in:
parent
7a29631a19
commit
967779d639
@ -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" %}
|
||||
|
Loading…
Reference in New Issue
Block a user