feat: add collapsible table of contents for smaller screens (#1245)
* refactor: create partial/article/components/toc * feat: add collapsible table of contents for smaller screens
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
{{/* Remove <nav id="TableOfContents"> and </nav> from .TableOfContents */}}
|
||||
{{ $toc := .TableOfContents }}
|
||||
{{ $toc = replace $toc "<nav id=\"TableOfContents\">" "" }}
|
||||
{{ $toc = replace $toc "</nav>" "" }}
|
||||
|
||||
{{ return $toc }}
|
||||
Reference in New Issue
Block a user