Skip to content

Commit

Permalink
Use truncatewords_html and stretched-link
Browse files Browse the repository at this point in the history
  • Loading branch information
brylie committed Jul 2, 2023
1 parent 2dbea4b commit e92df93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions home/templates/home/home_magazine_article_summary.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% load wagtailcore_tags %}
<div class="card mb-2">
<div class="card-body">
<a href="{% pageurl article %}" class="card-title fs-3 fw-bold title-link-no-underline">
<a href="{% pageurl article %}" class="card-title fs-3 fw-bold title-link-no-underline stretched-link">
{{ article.title }}
</a>

Expand All @@ -20,6 +20,6 @@
</ul>
{% endif %}

{{ article.teaser | richtext|truncatewords:50 }}
{{ article.teaser | richtext| truncatewords_html:50 }}
</div>
</div>
4 changes: 2 additions & 2 deletions home/templates/home/home_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ <h2>
<div class="card h-100">
<div class="card-body">
<a href="{% pageurl event.event %}"
class="card-title fs-3 fw-bold title-link-no-underline">
class="card-title fs-3 fw-bold title-link-no-underline stretched-link">
{{ event.event.title }}
</a>

<p class="card-subtitle mt-1 mb-1">{{ event.event.start_date | date:"F d, Y, f A" }} ({{ event.event.timezone }})</p>

<div class="card-text">
{{ event.event.teaser|truncatewords:10 }}
{{ event.event.teaser|truncatewords_html:10 }}
</div>
</div>
</div>
Expand Down

0 comments on commit e92df93

Please sign in to comment.