mirror of
https://github.com/kennethreitz/kjvstudy.org.git
synced 2026-06-05 23:00:16 +00:00
Fix filter order: link_verses before link_names
The link_names filter was converting book names like "Daniel" to family tree links before link_verses could match them as verse references. Now link_verses runs first so "Daniel (8:16, 9:21)" gets properly linked before "Daniel" becomes a person link. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -144,7 +144,7 @@ article {
|
||||
<h2 id="description-heading">Description</h2>
|
||||
<div class="resource-description">
|
||||
<p class="resource-description-body">
|
||||
{{ item.description | link_names | link_verses | safe }}
|
||||
{{ item.description | link_verses | link_names | safe }}
|
||||
</p>
|
||||
</div>
|
||||
{% if item.family_tree_link %}
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
|
||||
{% if item.description %}
|
||||
<div class="description">
|
||||
{{ item.description | link_names | link_verses | safe }}
|
||||
{{ item.description | link_verses | link_names | safe }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
@@ -221,7 +221,7 @@ document.body.dataset.resourceReader = 'true';
|
||||
|
||||
{% if page_description %}
|
||||
<section aria-label="Introduction">
|
||||
<p class="intro-text">{{ page_description | mdi | link_names | link_verses | safe }}</p>
|
||||
<p class="intro-text">{{ page_description | mdi | link_verses | link_names | safe }}</p>
|
||||
</section>
|
||||
{% endif %}
|
||||
|
||||
@@ -233,7 +233,7 @@ document.body.dataset.resourceReader = 'true';
|
||||
{% if intro_sidenotes %}
|
||||
<section aria-label="Additional notes">
|
||||
{% for intro in intro_sidenotes %}
|
||||
<p class="intro-text">{{ intro.text | mdi | link_names | link_verses | safe }}</p>
|
||||
<p class="intro-text">{{ intro.text | mdi | link_verses | link_names | safe }}</p>
|
||||
{% endfor %}
|
||||
</section>
|
||||
{% endif %}
|
||||
@@ -248,7 +248,7 @@ document.body.dataset.resourceReader = 'true';
|
||||
<p class="resource-item-title">{{ item.title }}</p>
|
||||
|
||||
<div class="resource-item-description">
|
||||
<p>{{ item.description | mdi | link_names | link_verses | safe }}</p>
|
||||
<p>{{ item.description | mdi | link_verses | link_names | safe }}</p>
|
||||
</div>
|
||||
|
||||
{% if item.verses %}
|
||||
|
||||
Reference in New Issue
Block a user