mirror of
https://github.com/kennethreitz/kjvstudy.org.git
synced 2026-10-24 14:29:14 +00:00
Implemented the Kekulé (Ahnentafel) numbering system for biblical genealogy, providing exponential ancestor numbering from Christ backwards. Also improved word study sidenotes distribution and fixed timeline verse range links. Major changes: - Kekulé numbering: Christ=#1, father=2n, mother=2n+1 for all ancestors - Word study sidenotes: Now appear on ~40% of verses (max 1-2 per verse) to prevent overwhelming repetition of terms like "Elohim" - Timeline verse ranges: Fixed links like "Galatians 2:7-8" to use proper #verse-7-8 anchor syntax for highlighting verse ranges - Display Kekulé numbers across all family tree pages and person details 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
125 lines
5.5 KiB
HTML
125 lines
5.5 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Generation {{ generation_num }} - Biblical Family Tree - KJV Study{% endblock %}
|
|
{% block description %}Generation {{ generation_num }} in the biblical genealogy from Adam to Jesus Christ.{% endblock %}
|
|
|
|
{% block content %}
|
|
<h1>Generation {{ generation_num }}</h1>
|
|
<p class="subtitle">{{ generation_people|length }} individual{% if generation_people|length != 1 %}s{% endif %} in this generation</p>
|
|
|
|
<section>
|
|
<p><a href="/family-tree">← Back to Family Tree Overview</a> | <a href="/family-tree/search">Search</a></p>
|
|
</section>
|
|
|
|
<section>
|
|
<h2>Navigation</h2>
|
|
<p>
|
|
{% if generation_num > 1 %}
|
|
<a href="/family-tree/generation/{{ generation_num - 1 }}">← Previous Generation</a>
|
|
{% endif %}
|
|
{% if generation_num in generations.keys() | sort and generation_num < (generations.keys() | sort | last) %}
|
|
<a href="/family-tree/generation/{{ generation_num + 1 }}">Next Generation →</a>
|
|
{% endif %}
|
|
</p>
|
|
</section>
|
|
|
|
<section>
|
|
<h2>People in Generation {{ generation_num }}</h2>
|
|
|
|
{% for person_id in generation_people %}
|
|
{% set person = family_tree_data[person_id] %}
|
|
<div style="margin: 3rem 0; padding-left: 1rem; border-left: 2px solid #ccc;">
|
|
<h3>{{ person.name }}</h3>
|
|
|
|
{% if person.kekule_number is not none %}
|
|
<p><em>Kekulé #{{ person.kekule_number }}</em></p>
|
|
{% endif %}
|
|
|
|
{% if person.birth_year != "Unknown" or person.death_year != "Unknown" or person.age_at_death != "Unknown" %}
|
|
<p>
|
|
{% if person.birth_year != "Unknown" %}Born: {{ person.birth_year }}{% endif %}
|
|
{% if person.death_year != "Unknown" %} — Died: {{ person.death_year }}{% endif %}
|
|
{% if person.age_at_death != "Unknown" %} ({{ person.age_at_death }}){% endif %}
|
|
</p>
|
|
{% endif %}
|
|
|
|
{% if person.spouse %}
|
|
<p><strong>Spouse:</strong> {{ person.spouse }}</p>
|
|
{% endif %}
|
|
|
|
{% if person.parents|length > 0 %}
|
|
<p><strong>Parents:</strong>
|
|
{% for parent_id in person.parents %}
|
|
{% if parent_id in family_tree_data %}
|
|
<a href="/family-tree/person/{{ parent_id }}">{{ family_tree_data[parent_id].name }}</a>
|
|
{% if family_tree_data[parent_id].generation or family_tree_data[parent_id].kekule_number is not none %}
|
|
(Generation {{ family_tree_data[parent_id].generation }}{% if family_tree_data[parent_id].kekule_number is not none %}, Kekulé #{{ family_tree_data[parent_id].kekule_number }}{% endif %})
|
|
{% endif %}
|
|
{% if not loop.last %}, {% endif %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
</p>
|
|
{% endif %}
|
|
|
|
{% if person.children|length > 0 %}
|
|
<p><strong>Children:</strong>
|
|
{% for child_id in person.children %}
|
|
{% if child_id in family_tree_data %}
|
|
<a href="/family-tree/person/{{ child_id }}">{{ family_tree_data[child_id].name }}</a>{% if not loop.last %}, {% endif %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
</p>
|
|
{% endif %}
|
|
|
|
{% if person.description and not person.description.startswith("Biblical figure from") %}
|
|
<p>{{ person.description[:300] }}{% if person.description|length > 300 %}...{% endif %}</p>
|
|
{% endif %}
|
|
|
|
{% if person.verses %}
|
|
<p><strong>Related Verses:</strong></p>
|
|
<ul>
|
|
{% for verse in person.verses %}
|
|
<li>
|
|
{% set ref_parts = verse.reference.split(' ') %}
|
|
{% if ref_parts|length >= 2 %}
|
|
{% set chapter_verse = ref_parts[-1] %}
|
|
{% if ':' in chapter_verse %}
|
|
{% set chapter = chapter_verse.split(':')[0] %}
|
|
{% set verse_part = chapter_verse.split(':')[1] %}
|
|
{# Handle verse ranges like "7-9" by taking just the first verse #}
|
|
{% if '-' in verse_part %}
|
|
{% set verse_num = verse_part.split('-')[0] %}
|
|
{% else %}
|
|
{% set verse_num = verse_part %}
|
|
{% endif %}
|
|
{% set book = ' '.join(ref_parts[:-1]) %}
|
|
<a href="/book/{{ book }}/chapter/{{ chapter }}/verse/{{ verse_num }}">{{ verse.reference }}</a>
|
|
{% else %}
|
|
{{ verse.reference }}
|
|
{% endif %}
|
|
{% else %}
|
|
{{ verse.reference }}
|
|
{% endif %}
|
|
— {{ verse.text }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
</div>
|
|
{% endfor %}
|
|
</section>
|
|
|
|
<section>
|
|
<h2>Navigation</h2>
|
|
<p>
|
|
{% if generation_num > 1 %}
|
|
<a href="/family-tree/generation/{{ generation_num - 1 }}">← Previous Generation</a>
|
|
{% endif %}
|
|
{% if generation_num in generations.keys() | sort and generation_num < (generations.keys() | sort | last) %}
|
|
<a href="/family-tree/generation/{{ generation_num + 1 }}">Next Generation →</a>
|
|
{% endif %}
|
|
</p>
|
|
<p><a href="/family-tree">← Back to Family Tree Overview</a></p>
|
|
</section>
|
|
{% endblock %}
|