feat(ebook): add phrase matching display and update search result structure

This commit is contained in:
2026-07-09 11:04:59 -04:00
parent a19ace7959
commit e34ed6c597
3 changed files with 38 additions and 3 deletions
@@ -82,6 +82,14 @@
</div>
{% endif %}
</dl>
{% if result.matched_phrases %}
<p class="phrase-matches">
<span class="phrase-matches-label">boosted by</span>
{% for phrase in result.matched_phrases %}
<span class="phrase-match">{{ phrase }}</span>
{% endfor %}
</p>
{% endif %}
</li>
{% endfor %}
</ol>