Files
kennethreitzandClaude Fable 5 94472e053a Site-wide design sweep: every remaining page on the system
Soup up the book landing pages (Joel et al.): Old/New Testament kicker,
letterspaced-caps book title matching the chapter pages, gold-tipped
Chapters heading, and key verses as gilt scripture plates with bronze
references and quiet significance notes.

Then a full sweep of the 32 remaining templates, applying the shared
patterns (gold-tipped small-caps apparatus headings, elevated cards,
chip buttons, gilt scripture plates, bronze micro-labels, token-only
colors, dark mode from tokens alone):

- about, about_claude, accessibility (system TOC cards, gilt CTA plate)
- resources, resource_index (elevated cards, bronze counts; fixed a
  featured-card style built on raw gold hex)
- names_of_god, tetragrammaton (scripture plates, chip actions)
- biblical_angels, biblical_covenants, biblical_festivals
- biblical_prophets, twelve_apostles, women_of_the_bible,
  fruits_of_spirit
- parables, interlinear_landing
- family_tree_person, family_tree_search (muted gender inks, gold for
  the messianic line)
- family_tree_ancestors, _descendants, _generation, _lineage
- search (scripture-plate results, gold-washed <mark> highlights),
  stars (star/gilt tokens), stats (stat-card grids in old-style
  numerals)
- commentary_index, cross_references_index (in-place TOC variants),
  error (404/500 rebuilt as a framed plate with the lost-sheep parable
  rubricated — Luke 15:4)
- reading_plan_detail (accent progress UI), topic_detail (scripture
  plates), strongs_language_index, stories_kids_index (~190 lines of
  purple dark-mode CSS removed)

Also fixed the last stragglers the sweep verifier found: raw #4a7c59
JS outlines in story_detail and the shared tree keyboard-nav partial,
and an undefined --border-color-light variable in stories_index.

All 976 tests pass; data validation 9/9; every template compiles.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-08 00:58:22 -04:00

267 lines
7.6 KiB
HTML

{% extends "base.html" %}
{% block title %}Cross-References Index - KJV Study{% endblock %}
{% block description %}Browse all {{ "{:,}".format(total_verses) }} verses with cross-references from the Treasury of Scripture Knowledge{% endblock %}
{% block content %}
<article>
<h1>Cross-References Index</h1>
<p class="subtitle">{{ "{:,}".format(total_verses) }} verses across {{ total_books }} books with {{ "{:,}".format(total_refs) }} cross-references</p>
<section>
<p>This index lists every verse that has cross-references to related passages. Cross-references help you:</p>
<ul>
<li><strong>See connections</strong> between related passages</li>
<li><strong>Understand context</strong> by comparing parallel accounts</li>
<li><strong>Study themes</strong> that appear throughout Scripture</li>
<li><strong>Discover fulfillment</strong> of Old Testament prophecies in the New Testament</li>
</ul>
<p>Data sourced from the <strong>Treasury of Scripture Knowledge</strong> via <a href="https://www.openbible.info/labs/cross-references/" target="_blank" rel="noopener">OpenBible.info</a> (CC-BY license).</p>
</section>
<nav class="toc">
<h2>Table of Contents</h2>
<div class="toc-columns">
{% for book, chapters in crossref_index.items() %}
<a href="#{{ book|replace(' ', '-')|lower }}" class="toc-link">{{ book }}</a>
{% endfor %}
</div>
</nav>
{% for book, chapters in crossref_index.items() %}
<section class="book-section" id="{{ book|replace(' ', '-')|lower }}">
<h2>{{ book }}</h2>
{% for chapter, verses in chapters.items() %}
<div class="chapter-group">
<strong>Chapter {{ chapter }}:</strong>
<span class="verse-list">{% for verse_data in verses %}<a href="/book/{{ book|urlencode }}/chapter/{{ chapter }}/verse/{{ verse_data.verse }}" class="verse-link" title="{{ verse_data.ref_count }} cross-references">{{ verse_data.verse }}</a><span class="ref-badge">{{ verse_data.ref_count }}</span>{% if not loop.last %}, {% endif %}{% endfor %}</span>
<span class="verse-count">({{ verses|length }} {% if verses|length == 1 %}verse{% else %}verses{% endif %})</span>
</div>
{% endfor %}
</section>
{% endfor %}
<section class="stats-section">
<h2>Coverage Statistics</h2>
<table>
<tr>
<td><strong>Total Books with Cross-References</strong></td>
<td>{{ total_books }} of 66</td>
</tr>
<tr>
<td><strong>Total Verses with Cross-References</strong></td>
<td>{{ "{:,}".format(total_verses) }} of 31,102</td>
</tr>
<tr>
<td><strong>Coverage Percentage</strong></td>
<td>{{ "%.1f"|format((total_verses / 31102) * 100) }}%</td>
</tr>
<tr>
<td><strong>Total Cross-References</strong></td>
<td>{{ "{:,}".format(total_refs) }}</td>
</tr>
<tr>
<td><strong>Average per Verse</strong></td>
<td>{{ "%.1f"|format(total_refs / total_verses) }}</td>
</tr>
</table>
</section>
</article>
<style>
.subtitle {
font-size: 1.2rem;
color: var(--text-secondary);
margin-top: -1rem;
margin-bottom: 2rem;
font-style: italic;
}
.toc {
margin: 2rem 0;
padding: 1.5rem 1.75rem;
background: var(--bg-elevated);
border: 1px solid var(--border-color-dark);
border-radius: 8px;
box-shadow: var(--shadow-soft);
}
/* Apparatus heading — small caps over a gold-tipped rule */
.toc h2 {
position: relative;
margin: 0 0 1rem;
font-size: 0.85rem !important;
font-weight: 600;
font-style: normal !important;
text-transform: uppercase;
letter-spacing: 0.18em;
color: var(--text-secondary) !important;
padding-bottom: 0.6rem;
border-bottom: 1px solid var(--border-color);
}
.toc h2::after {
content: '';
position: absolute;
left: 0;
bottom: -1px;
width: 2.75rem;
height: 1px;
background: var(--gold);
}
.toc-columns {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 0.5rem;
}
.toc-link {
text-decoration: none;
color: var(--text-color);
border-bottom: 1px solid transparent;
}
.toc-link:hover {
color: var(--accent-strong);
border-bottom-color: var(--underline);
}
.book-section {
margin: 2.5rem 0;
padding: 1.5rem 1.75rem;
background: var(--bg-elevated);
border: 1px solid var(--border-color-dark);
border-radius: 8px;
}
.book-section h2 {
position: relative;
margin: 0 0 1.25rem;
font-size: 0.95rem !important;
font-weight: 600;
font-style: normal !important;
text-transform: uppercase;
letter-spacing: 0.18em;
color: var(--text-secondary) !important;
padding-bottom: 0.6rem;
border-bottom: 1px solid var(--border-color);
}
.book-section h2::after {
content: '';
position: absolute;
left: 0;
bottom: -1px;
width: 2.75rem;
height: 1px;
background: var(--gold);
}
.chapter-group {
margin: 0.75rem 0;
padding: 0.5rem 0;
line-height: 1.8;
}
.chapter-group strong {
display: inline-block;
min-width: 100px;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.14em;
color: var(--bronze);
}
.verse-list {
display: inline;
}
.verse-link {
text-decoration: none;
color: var(--link-color);
border-bottom: 1px solid transparent;
}
.verse-link:hover {
color: var(--accent-strong);
border-bottom-color: var(--underline);
}
.ref-badge {
font-size: 0.7em;
font-weight: 600;
color: var(--bronze);
vertical-align: super;
margin-left: 0.1em;
}
.verse-count {
margin-left: 0.5rem;
color: var(--text-tertiary);
font-size: 0.9rem;
font-style: italic;
}
.stats-section {
margin-top: 3rem;
padding-top: 2rem;
border-top: 1px solid var(--border-color);
}
.stats-section h2 {
position: relative;
margin: 0 0 1.25rem;
font-size: 0.95rem !important;
font-weight: 600;
font-style: normal !important;
text-transform: uppercase;
letter-spacing: 0.18em;
color: var(--text-secondary) !important;
padding-bottom: 0.6rem;
border-bottom: 1px solid var(--border-color);
}
.stats-section h2::after {
content: '';
position: absolute;
left: 0;
bottom: -1px;
width: 2.75rem;
height: 1px;
background: var(--gold);
}
table {
width: 100%;
border-collapse: collapse;
margin: 1.5rem 0;
}
tr {
border-bottom: 1px solid var(--border-color);
}
td {
padding: 0.75rem 1rem;
}
td:first-child {
width: 60%;
}
td:last-child {
text-align: right;
font-variant-numeric: tabular-nums;
color: var(--text-secondary);
}
a[target="_blank"]::after {
content: " ↗";
font-size: 0.8em;
opacity: 0.6;
}
</style>
{% endblock %}