From e3bc7f7575082a321bcef0b4d7def3f3e82a9d79 Mon Sep 17 00:00:00 2001 From: Alex Ioannidis Date: Mon, 4 Sep 2023 06:15:29 +0200 Subject: [PATCH] frontpage: handle community carousel missing description --- templates/semantic-ui/zenodo_rdm/macros/carousel_item.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/semantic-ui/zenodo_rdm/macros/carousel_item.html b/templates/semantic-ui/zenodo_rdm/macros/carousel_item.html index e49c7289..31ca958a 100644 --- a/templates/semantic-ui/zenodo_rdm/macros/carousel_item.html +++ b/templates/semantic-ui/zenodo_rdm/macros/carousel_item.html @@ -50,9 +50,11 @@ + {% if community.metadata.description %}

{{ community.metadata.description | truncate(length=300, end='...') }}

+ {% endif %} {% endmacro %}