feat(portfolio): add dark_text field to project tags

This commit is contained in:
2026-10-01 21:40:02 +02:00
parent 2d2e41a026
commit ec6a3401a6
3 changed files with 20 additions and 1 deletions
+1 -1
View File
@@ -14,7 +14,7 @@
<p>{{ project.short_description }}</p>
<div>
{% for t in project.tags.all %}
<div class="badge text-white fs-5"
<div class="badge {% if t.dark_text %}text-black{% else %}text-white{% endif %} fs-5"
style="background-color: #{{ t.color }}">{{ t }}</div>
{% endfor %}
</div>