mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-24 09:56:58 +00:00
Skip Table of Contents pages
This commit is contained in:
1 parent
9c2610ff40
commit
6ec65eee23
1 file changed
+1
-1
@@ -10,7 +10,7 @@ const HeaderNav = React.forwardRef(({}, pagesRef)=>{
|
||||
|
||||
const renderHeaderLinks = ()=>{
|
||||
if(!pagesRef.current) return;
|
||||
const elements = pagesRef.current.querySelectorAll('[id]');
|
||||
const elements = pagesRef.current.querySelectorAll('.page:not(:has(.toc)) [id]');
|
||||
if(!elements) return;
|
||||
const navList = [];
|
||||
|
||||
|
||||
Reference in new issue
Block a user