Fix HTML tags display in project descriptions on homepage
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-11-26 20:55:27 +09:00
parent 25d797dff0
commit 803c1373e0

View File

@@ -392,7 +392,7 @@
{% endif %}
<div class="p-4">
<h5 class="mb-3">{{ project.name }}</h5>
<p class="text-muted mb-3">{{ project.description|truncatewords:15 }}</p>
<p class="text-muted mb-3">{{ project.short_description|default:project.description|striptags|truncatewords:15 }}</p>
<a href="{% url 'project_detail' project.pk %}" class="text-primary fw-semibold">
Подробнее <i class="fas fa-arrow-right ms-1"></i>
</a>