diff --git a/languages/en.json b/languages/en.json index 1bf2520..78f3da0 100644 --- a/languages/en.json +++ b/languages/en.json @@ -1,6 +1,4 @@ { - "plugin-bludit-toc": { - "name": "Table of Contents", - "description": "Sticky ToC sidebar (desktop) and floating drawer (mobile) generated from the article's h2/h3/h4 headings." - } + "plugin-name": "Table of Contents", + "plugin-description": "Sticky ToC sidebar (desktop) and floating drawer (mobile) generated from the article's h2/h3/h4 headings." } diff --git a/toc.js b/toc.js index 2415156..05e9211 100644 --- a/toc.js +++ b/toc.js @@ -18,12 +18,12 @@ document.head.appendChild(styleEl); /* ---- Find the article content area ---- */ + /* Only match unambiguous single-article containers to avoid firing on + homepage post-list cards that also contain
and

tags. */ var content = document.querySelector('.content') || document.querySelector('article .entry-content') || document.querySelector('.entry-content') - || document.querySelector('.post-content') - || document.querySelector('article') - || document.querySelector('main'); + || document.querySelector('.post-content'); if (!content) return;