mirror of
https://github.com/kennethreitz/kjvstudy.org.git
synced 2026-06-05 23:00:16 +00:00
Fix TOC to include h3 headings in article tags
Update JavaScript selector in resource page TOCs to capture h3 headings nested inside article tags. Changed selector from: 'section h2, section h3' to: 'section h2, section h3, section article h3' This ensures individual entries (angel names, prophet names, etc.) appear in the table of contents as indented sub-items under their category headings. Updated templates: - biblical_angels.html - biblical_prophets.html - names_of_god.html - twelve_apostles.html - women_of_the_bible.html - parables.html 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -213,7 +213,7 @@
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
// Generate TOC from h2 and h3 headings
|
||||
const tocList = document.getElementById('toc-list');
|
||||
const headings = document.querySelectorAll('section h2, section h3');
|
||||
const headings = document.querySelectorAll('section h2, section h3, section article h3');
|
||||
|
||||
headings.forEach((heading, index) => {
|
||||
// Create an ID for the heading if it doesn't have one
|
||||
|
||||
@@ -209,7 +209,7 @@
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
// Generate TOC from h2 and h3 headings
|
||||
const tocList = document.getElementById('toc-list');
|
||||
const headings = document.querySelectorAll('section h2, section h3');
|
||||
const headings = document.querySelectorAll('section h2, section h3, section article h3');
|
||||
|
||||
headings.forEach((heading, index) => {
|
||||
// Create an ID for the heading if it doesn't have one
|
||||
|
||||
@@ -209,7 +209,7 @@
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
// Generate TOC from h2 and h3 headings
|
||||
const tocList = document.getElementById('toc-list');
|
||||
const headings = document.querySelectorAll('section h2, section h3');
|
||||
const headings = document.querySelectorAll('section h2, section h3, section article h3');
|
||||
|
||||
headings.forEach((heading, index) => {
|
||||
// Create an ID for the heading if it doesn't have one
|
||||
|
||||
@@ -207,7 +207,7 @@
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
// Generate TOC from h2 and h3 headings
|
||||
const tocList = document.getElementById('toc-list');
|
||||
const headings = document.querySelectorAll('section h2, section h3');
|
||||
const headings = document.querySelectorAll('section h2, section h3, section article h3');
|
||||
|
||||
headings.forEach((heading, index) => {
|
||||
// Create an ID for the heading if it doesn't have one
|
||||
|
||||
@@ -211,7 +211,7 @@
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
// Generate TOC from h2 and h3 headings
|
||||
const tocList = document.getElementById('toc-list');
|
||||
const headings = document.querySelectorAll('section h2, section h3');
|
||||
const headings = document.querySelectorAll('section h2, section h3, section article h3');
|
||||
|
||||
headings.forEach((heading, index) => {
|
||||
// Create an ID for the heading if it doesn't have one
|
||||
|
||||
@@ -211,7 +211,7 @@
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
// Generate TOC from h2 and h3 headings
|
||||
const tocList = document.getElementById('toc-list');
|
||||
const headings = document.querySelectorAll('section h2, section h3');
|
||||
const headings = document.querySelectorAll('section h2, section h3, section article h3');
|
||||
|
||||
headings.forEach((heading, index) => {
|
||||
// Create an ID for the heading if it doesn't have one
|
||||
|
||||
Reference in New Issue
Block a user