Show family tree results above Bible verses in search

Makes it easier to find people when searching by name, as the person's
profile appears before all the verses mentioning them.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-22 15:59:08 -05:00
parent a1519d5689
commit a6fcc88222
+12 -12
View File
@@ -112,18 +112,6 @@
Found <strong>{{ total_results }}</strong> result{{ 's' if total_results != 1 else '' }} for "<strong>{{ query }}</strong>"
</div>
{% if results %}
<h2 style="margin-top: 2rem;">Bible Verses</h2>
{% for result in results %}
<article class="search-result">
<div class="result-reference">
<a href="{{ result.url }}">{{ result.reference }}</a>
</div>
<div class="result-text">{{ result.highlighted_text | link_names | safe }}</div>
</article>
{% endfor %}
{% endif %}
{% if family_tree_results %}
<h2 style="margin-top: 2rem;">People in Family Tree</h2>
{% for result in family_tree_results %}
@@ -142,6 +130,18 @@
</article>
{% endfor %}
{% endif %}
{% if results %}
<h2 style="margin-top: 2rem;">Bible Verses</h2>
{% for result in results %}
<article class="search-result">
<div class="result-reference">
<a href="{{ result.url }}">{{ result.reference }}</a>
</div>
<div class="result-text">{{ result.highlighted_text | link_names | safe }}</div>
</article>
{% endfor %}
{% endif %}
{% elif total_results == 0 %}
<div class="search-stats">
<p><strong>No results found</strong> for "{{ query }}". Try different words or check your spelling.</p>