diff --git a/components/Sidebar.tsx b/components/Sidebar.tsx index e2dd05113..6e21f33f2 100644 --- a/components/Sidebar.tsx +++ b/components/Sidebar.tsx @@ -428,7 +428,7 @@ export const DocsNav = ({ {/* Reference */} -
+
{ - const slug = slugifyMarkdownHeadline(children); - return ( - - - {children} - - ); - }, - }, + /* eslint-disable */ + h2: + depth === 0 + ? { + component: ({ children }) => { + const slug = slugifyMarkdownHeadline(children); + return ( + + {children} + + ); + }, + } + : depth >= 2 + ? { + component: ({ children }) => { + const slug = slugifyMarkdownHeadline(children); + return ( + + + ● + + {children} + + ); + }, + } + : { component: () => null }, h3: depth >= 3 ? { diff --git a/pages/blog/posts/[slug].page.tsx b/pages/blog/posts/[slug].page.tsx index bc745beb1..e17132a32 100644 --- a/pages/blog/posts/[slug].page.tsx +++ b/pages/blog/posts/[slug].page.tsx @@ -92,7 +92,7 @@ export default function StaticMarkdownPage({ }, )}
-
+
on this page
diff --git a/pages/blog/posts/understanding-lexical-dynamic-scopes.md b/pages/blog/posts/understanding-lexical-dynamic-scopes.md index 28bed24b4..bbcb8f53c 100644 --- a/pages/blog/posts/understanding-lexical-dynamic-scopes.md +++ b/pages/blog/posts/understanding-lexical-dynamic-scopes.md @@ -407,6 +407,6 @@ Schema](https://www.oreilly.com/library/view/unifying-business-data/978109814499 You can also connect with me on [LinkedIn](https://www.linkedin.com/in/jviotti/). -*** + *Image by [Christina Morillo](https://www.pexels.com/@divinetechygirl/) from [Pexels](https://www.pexels.com/photo/man-standing-infront-of-white-board-1181345/).*