fix: Hide duplicate summary text when identical to title

Problem: Sections showed title twice (once as title, once as summary_text)
Cause: summary_text contains same content as title in current data

Solution: Only show summary_text if different from title and section_path
Condition: summary_text != title AND summary_text != section_path
This commit is contained in:
2026-01-01 16:16:50 +01:00
parent 109d16b223
commit 65adc02d6e

View File

@@ -184,7 +184,7 @@
<strong>{{ section.title[:80] }}{% if section.title|length > 80 %}...{% endif %}</strong> <strong>{{ section.title[:80] }}{% if section.title|length > 80 %}...{% endif %}</strong>
<span class="badge badge-similarity">⚡ {{ section.similarity }}% similaire</span> <span class="badge badge-similarity">⚡ {{ section.similarity }}% similaire</span>
</div> </div>
{% if section.summary_text %} {% if section.summary_text and section.summary_text != section.title and section.summary_text != section.section_path %}
<p style="margin: 0; font-size: 0.9em; color: var(--color-text-main); font-style: italic;">{{ section.summary_text[:150] }}{% if section.summary_text|length > 150 %}...{% endif %}</p> <p style="margin: 0; font-size: 0.9em; color: var(--color-text-main); font-style: italic;">{{ section.summary_text[:150] }}{% if section.summary_text|length > 150 %}...{% endif %}</p>
{% endif %} {% endif %}
{% if section.concepts %} {% if section.concepts %}