Skip to content

Commit

Permalink
frontpage: handle community carousel missing description
Browse files Browse the repository at this point in the history
  • Loading branch information
slint committed Sep 4, 2023
1 parent 5123b0c commit e3bc7f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/semantic-ui/zenodo_rdm/macros/carousel_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@
</div>
</div>

{% if community.metadata.description %}
<p class="description">
{{ community.metadata.description | truncate(length=300, end='...') }}
</p>
{% endif %}
</div>
</div>
{% endmacro %}

0 comments on commit e3bc7f7

Please sign in to comment.