From 7e4c8e0415948fb62bf2ff319fd5cdfedee0dfb7 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 9 Jun 2024 16:48:30 -0300 Subject: content, client: generateContentHeading: stickyTitle slot --- src/static/js/client.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/static') diff --git a/src/static/js/client.js b/src/static/js/client.js index 8b470832..1911c6f7 100644 --- a/src/static/js/client.js +++ b/src/static/js/client.js @@ -2706,9 +2706,9 @@ function updateStickySubheadingContent(index) { } const textContainer = - closestHeading.querySelector('.content-heading-main-title') - // Just for compatibility with older builds of the site. - ?? closestHeading; + templateContent( + closestHeading.querySelector('.content-heading-sticky-title')) ?? + closestHeading.querySelector('.content-heading-main-title'); for (const child of textContainer.childNodes) { if (child.tagName === 'A') { -- cgit 1.3.0-6-gf8a5