diff --git a/scipost_django/news/templates/news/news_card_content.html b/scipost_django/news/templates/news/news_card_content.html index 50b0cadfd5cbd68b66afe34974a63d9caf263649..7835c8bf50f4a104c9c3b0f06c54053a66fb00c8 100644 --- a/scipost_django/news/templates/news/news_card_content.html +++ b/scipost_django/news/templates/news/news_card_content.html @@ -9,11 +9,11 @@ src="{{ news.image.url }}" alt="image"/> </div> <div class="col-sm-9 col-lg-10"> - <p class="mb-0">{{ news.blurb|safe }}</p> + <p class="mb-0">{{ news.blurb|safe|linebreaksbr }}</p> </div> </div> {% else %} - <p class="mb-0">{{ news.blurb|safe }}</p> + <p class="mb-0">{{ news.blurb|safe|linebreaksbr }}</p> {% endif %} {% if news.followup_link %} <a class="mt-3 d-inline-block" href="{{ news.followup_link }}"> diff --git a/scipost_django/scipost/templates/scipost/portal/_hx_home.html b/scipost_django/scipost/templates/scipost/portal/_hx_home.html index fe8d020ae8587882fee847afef6d2630f4fda753..70e7f3c3d53ffe20a05cd2d2a9c71a491368992e 100644 --- a/scipost_django/scipost/templates/scipost/portal/_hx_home.html +++ b/scipost_django/scipost/templates/scipost/portal/_hx_home.html @@ -44,7 +44,14 @@ <div class="date">{{ news.date|date:'d' }}<span class="month">{{ news.date|date:'M' }}</span></div> <div> <h3><a href="{% url 'news:news' %}#news_{{ news.id }}">{{ news.headline }}</a></h3> - <p>{{ news.blurb_short }}</p> + {% if news.image %} + <div class="p-2"> + <img class="mb-3 mb-sm-0 {{ news.image.css_class }}" + style="max-height: 80%; max-width: 80%;" + src="{{ news.image.url }}" alt="image"/> + </div> + {% endif %} + <p>{{ news.blurb_short|linebreaksbr }}</p> </div> </li> {% endfor %}