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:
2025-11-22 23:36:20 -05:00
parent d29f0ae2cf
commit acfd74f06d
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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