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:
@@ -184,7 +184,7 @@
|
||||
<strong>{{ section.title[:80] }}{% if section.title|length > 80 %}...{% endif %}</strong>
|
||||
<span class="badge badge-similarity">⚡ {{ section.similarity }}% similaire</span>
|
||||
</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>
|
||||
{% endif %}
|
||||
{% if section.concepts %}
|
||||
|
||||
Reference in New Issue
Block a user