From e92df93aeb04b04df00195ad32f0718281698bc7 Mon Sep 17 00:00:00 2001 From: Brylie Christopher Oxley Date: Sun, 2 Jul 2023 10:54:38 +0300 Subject: [PATCH] Use truncatewords_html and stretched-link --- home/templates/home/home_magazine_article_summary.html | 4 ++-- home/templates/home/home_page.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/home/templates/home/home_magazine_article_summary.html b/home/templates/home/home_magazine_article_summary.html index a58e2356f..ad8d42c34 100644 --- a/home/templates/home/home_magazine_article_summary.html +++ b/home/templates/home/home_magazine_article_summary.html @@ -1,7 +1,7 @@ {% load wagtailcore_tags %}
- + {{ article.title }} @@ -20,6 +20,6 @@ {% endif %} - {{ article.teaser | richtext|truncatewords:50 }} + {{ article.teaser | richtext| truncatewords_html:50 }}
diff --git a/home/templates/home/home_page.html b/home/templates/home/home_page.html index 4301a0d83..d8ed7e7da 100644 --- a/home/templates/home/home_page.html +++ b/home/templates/home/home_page.html @@ -48,14 +48,14 @@

+ class="card-title fs-3 fw-bold title-link-no-underline stretched-link"> {{ event.event.title }}

{{ event.event.start_date | date:"F d, Y, f A" }} ({{ event.event.timezone }})

- {{ event.event.teaser|truncatewords:10 }} + {{ event.event.teaser|truncatewords_html:10 }}