Files
kjvstudy.org/kjvstudy_org/templates/study_guide_detail.html
T
kennethreitz 4caabeb7ca Add verse links to study guide detail page marginnotes
- Add URL field to verse_texts in study_guide_detail route
- Use parse_verse_reference() to generate URLs for each verse
- Update study_guide_detail.html to make verse references clickable
- Single verses link to dedicated verse pages
- Verse ranges link to chapter pages with verse range anchors
- All verse references in marginnotes are now clickable links

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-13 17:21:25 -05:00

40 lines
1.1 KiB
HTML

{% extends "base.html" %}
{% block title %}{{ guide.title }} - Bible Study Guide - KJV Bible{% endblock %}
{% block content %}
<h1>{{ guide.title }}</h1>
<p class="subtitle"><a href="/">Authorized King James Version</a></p>
<section>
<p><span class="newthought">{{ guide.description }}</span></p>
</section>
{% for section in guide.sections %}
{% set section_index = loop.index %}
<section>
<h2>{{ section.title }}</h2>
{% for verse_data in section.verse_texts %}
<p>
<label for="mn-s{{ section_index }}-v{{ loop.index }}" class="margin-toggle"></label>
<input type="checkbox" id="mn-s{{ section_index }}-v{{ loop.index }}" class="margin-toggle"/>
<span class="marginnote">
<strong><a href="{{ verse_data.url }}">{{ verse_data.reference }}</a></strong><br/>
<em>{{ verse_data.text }}</em>
</span>
</p>
{% endfor %}
<p>{{ section.content }}</p>
</section>
{% endfor %}
<nav>
<p>
<a href="/study-guides">← Study Guides</a> |
<a href="/">Home</a>
</p>
</nav>
{% endblock %}