Skip to content

Commit 5e00af7

Browse files
kennethreitzclaude
andcommitted
Add SEO schema improvements (BreadcrumbList, Book schema)
- Add BreadcrumbList JSON-LD schema to verse, chapter, book, topic, study guide, and story detail pages for rich SERP breadcrumbs - Add Book schema to book pages with chapter count and authorship - Add Article schema to topic detail pages - All key content pages now have proper structured data for search engines to understand site hierarchy 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 2fbf182 commit 5e00af7

File tree

6 files changed

+222
-0
lines changed

6 files changed

+222
-0
lines changed

kjvstudy_org/templates/book.html

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,58 @@
44

55
{% block description %}Study the book of {{ book }} from the King James Bible (KJV). {% if book_intro and book_intro.introduction %}{{ book_intro.introduction[:110]|striptags }}...{% elif introduction %}{{ introduction[:110]|striptags }}...{% else %}Complete KJV text with chapters, commentary, and study resources.{% endif %}{% endblock %}
66

7+
{% block structured_data %}
8+
<script type="application/ld+json">
9+
{
10+
"@context": "https://schema.org",
11+
"@type": "Book",
12+
"name": {{ book | tojson }},
13+
"url": "https://kjvstudy.org/book/{{ book | urlencode }}",
14+
"inLanguage": "en",
15+
"author": {
16+
"@type": "Organization",
17+
"name": "Authorized Version Translators"
18+
},
19+
"publisher": {
20+
"@type": "Organization",
21+
"name": "KJV Study",
22+
"url": "https://kjvstudy.org"
23+
},
24+
"isPartOf": {
25+
"@type": "Book",
26+
"name": "King James Version Bible",
27+
"url": "https://kjvstudy.org/books"
28+
},
29+
"numberOfPages": {{ chapters|length }}
30+
}
31+
</script>
32+
<script type="application/ld+json">
33+
{
34+
"@context": "https://schema.org",
35+
"@type": "BreadcrumbList",
36+
"itemListElement": [
37+
{
38+
"@type": "ListItem",
39+
"position": 1,
40+
"name": "Home",
41+
"item": "https://kjvstudy.org"
42+
},
43+
{
44+
"@type": "ListItem",
45+
"position": 2,
46+
"name": "Books",
47+
"item": "https://kjvstudy.org/books"
48+
},
49+
{
50+
"@type": "ListItem",
51+
"position": 3,
52+
"name": {{ book | tojson }}
53+
}
54+
]
55+
}
56+
</script>
57+
{% endblock %}
58+
759
{% block head %}
860
<style>
961
/* Chapter grid layout */

kjvstudy_org/templates/chapter.html

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,40 @@
44

55
{% block description %}Read {{ book }} chapter {{ chapter }} from the King James Version Bible. {{ verses[0].text[:100] if verses and verses|length > 0 else '' }}...{% endblock %}
66

7+
{% block structured_data %}
8+
<script type="application/ld+json">
9+
{
10+
"@context": "https://schema.org",
11+
"@type": "BreadcrumbList",
12+
"itemListElement": [
13+
{
14+
"@type": "ListItem",
15+
"position": 1,
16+
"name": "Home",
17+
"item": "https://kjvstudy.org"
18+
},
19+
{
20+
"@type": "ListItem",
21+
"position": 2,
22+
"name": "Books",
23+
"item": "https://kjvstudy.org/books"
24+
},
25+
{
26+
"@type": "ListItem",
27+
"position": 3,
28+
"name": {{ book | tojson }},
29+
"item": "https://kjvstudy.org/book/{{ book | urlencode }}"
30+
},
31+
{
32+
"@type": "ListItem",
33+
"position": 4,
34+
"name": "Chapter {{ chapter }}"
35+
}
36+
]
37+
}
38+
</script>
39+
{% endblock %}
40+
741
{% block head %}
842
<style>
943
/* Anchor offset for sticky breadcrumb */

kjvstudy_org/templates/story_detail.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,31 @@
3333
}
3434
}
3535
</script>
36+
<script type="application/ld+json">
37+
{
38+
"@context": "https://schema.org",
39+
"@type": "BreadcrumbList",
40+
"itemListElement": [
41+
{
42+
"@type": "ListItem",
43+
"position": 1,
44+
"name": "Home",
45+
"item": "https://kjvstudy.org"
46+
},
47+
{
48+
"@type": "ListItem",
49+
"position": 2,
50+
"name": "Bible Stories",
51+
"item": "https://kjvstudy.org/stories"
52+
},
53+
{
54+
"@type": "ListItem",
55+
"position": 3,
56+
"name": {{ story.title | tojson }}
57+
}
58+
]
59+
}
60+
</script>
3661
{% endblock %}
3762

3863
{% block head %}

kjvstudy_org/templates/study_guide_detail.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,31 @@
3434
}
3535
}
3636
</script>
37+
<script type="application/ld+json">
38+
{
39+
"@context": "https://schema.org",
40+
"@type": "BreadcrumbList",
41+
"itemListElement": [
42+
{
43+
"@type": "ListItem",
44+
"position": 1,
45+
"name": "Home",
46+
"item": "https://kjvstudy.org"
47+
},
48+
{
49+
"@type": "ListItem",
50+
"position": 2,
51+
"name": "Study Guides",
52+
"item": "https://kjvstudy.org/study-guides"
53+
},
54+
{
55+
"@type": "ListItem",
56+
"position": 3,
57+
"name": {{ guide.title | tojson }}
58+
}
59+
]
60+
}
61+
</script>
3762
{% endblock %}
3863

3964
{% block head %}

kjvstudy_org/templates/topic_detail.html

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,55 @@
33
{% block title %}{{ topic_name }} - Topical Index - KJV Study{% endblock %}
44
{% block description %}{{ topic.description }}{% endblock %}
55

6+
{% block structured_data %}
7+
<script type="application/ld+json">
8+
{
9+
"@context": "https://schema.org",
10+
"@type": "Article",
11+
"headline": {{ topic_name | tojson }},
12+
"description": {{ topic.description | tojson }},
13+
"author": {
14+
"@type": "Organization",
15+
"name": "KJV Study"
16+
},
17+
"publisher": {
18+
"@type": "Organization",
19+
"name": "KJV Study",
20+
"url": "https://kjvstudy.org"
21+
},
22+
"mainEntityOfPage": {
23+
"@type": "WebPage",
24+
"@id": "https://kjvstudy.org/topics/{{ topic_name | urlencode }}"
25+
}
26+
}
27+
</script>
28+
<script type="application/ld+json">
29+
{
30+
"@context": "https://schema.org",
31+
"@type": "BreadcrumbList",
32+
"itemListElement": [
33+
{
34+
"@type": "ListItem",
35+
"position": 1,
36+
"name": "Home",
37+
"item": "https://kjvstudy.org"
38+
},
39+
{
40+
"@type": "ListItem",
41+
"position": 2,
42+
"name": "Topics",
43+
"item": "https://kjvstudy.org/topics"
44+
},
45+
{
46+
"@type": "ListItem",
47+
"position": 3,
48+
"name": {{ topic_name | tojson }}
49+
}
50+
]
51+
}
52+
</script>
53+
{% endblock %}
54+
655
{% block head %}
756
<style>
857
.topic-overview {

kjvstudy_org/templates/verse.html

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,43 @@
3535
}
3636
}
3737
</script>
38+
<script type="application/ld+json">
39+
{
40+
"@context": "https://schema.org",
41+
"@type": "BreadcrumbList",
42+
"itemListElement": [
43+
{
44+
"@type": "ListItem",
45+
"position": 1,
46+
"name": "Home",
47+
"item": "https://kjvstudy.org"
48+
},
49+
{
50+
"@type": "ListItem",
51+
"position": 2,
52+
"name": "Books",
53+
"item": "https://kjvstudy.org/books"
54+
},
55+
{
56+
"@type": "ListItem",
57+
"position": 3,
58+
"name": {{ book | tojson }},
59+
"item": "https://kjvstudy.org/book/{{ book | urlencode }}"
60+
},
61+
{
62+
"@type": "ListItem",
63+
"position": 4,
64+
"name": "Chapter {{ chapter }}",
65+
"item": "https://kjvstudy.org/book/{{ book | urlencode }}/chapter/{{ chapter }}"
66+
},
67+
{
68+
"@type": "ListItem",
69+
"position": 5,
70+
"name": "Verse {{ verse_num }}"
71+
}
72+
]
73+
}
74+
</script>
3875
{% endblock %}
3976

4077
{% block head %}

0 commit comments

Comments
 (0)