From 7a29631a19cfdc98127492e4b129c0741eb82a4c Mon Sep 17 00:00:00 2001 From: Kyle Maas Date: Sat, 22 Oct 2022 14:22:37 +0000 Subject: [PATCH] Truncate titles and descriptions when they exceed limits --- templates/cms/media.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/cms/media.html b/templates/cms/media.html index 2999f19..998db8f 100644 --- a/templates/cms/media.html +++ b/templates/cms/media.html @@ -1,13 +1,13 @@ {% extends "base.html" %} {% load static %} -{% block headtitle %}{{media_object.title}} - {{PORTAL_NAME}}{% endblock headtitle %} +{% block headtitle %}{{media_object.title|add:" - "|add:PORTAL_NAME|truncatechars:64}}{% endblock headtitle %} {% block headermeta %} - +