55< link rel ="icon " href ="/jekyll-theme-amethyst/favicon.svg ">
66< link rel ="stylesheet " href ="/jekyll-theme-amethyst/assets/styles.css?v=f705e356 " media ="screen ">
77< link rel ="alternate " type ="application/rss+xml " href ="/jekyll-theme-amethyst/feed.xml " title ="Amethyst Demo ">
8- < title > Lorem ipsum | Amethyst Demo</ title >
9- < meta property ="og:title " content ="Lorem ipsum "> < meta name ="twitter:card " content ="summary_large_image "> < meta name ="robots " content ="noindex,follow "> < meta name ="docsearch:amethyst_pagetype_navigation " content ="1 ">
8+ < title > Lorem with TOC | Amethyst Demo</ title >
9+ < meta property ="og:title " content ="Lorem with TOC "> < meta name ="twitter:card " content ="summary_large_image "> < meta name ="robots " content ="noindex,follow "> < meta name ="docsearch:amethyst_pagetype_navigation " content ="1 ">
1010< body >
1111 < header class ="site-header " role ="banner ">
1212 < div class ="site-header-wrapper wrapper ">
6969< div class ="content " role ="main ">
7070< article >
7171 < header >
72- < h1 > Lorem ipsum </ h1 >
72+ < h1 > Lorem with TOC </ h1 >
7373
7474 </ header >
7575
76-
76+ < p > This page enables the TOC feature of the sidebar.</ p >
77+
78+ < h2 id ="heading "> Heading</ h2 >
79+
80+ < p > Note that this page uses the “group” layout.</ p >
81+
82+ < h2 id ="another "> Another</ h2 >
83+
84+ < p > And, the “group” layout disables the TOC by default.</ p >
7785
7886
7987< div class ="posts ">
80- < h2 id ="example-amet "> < a href ="/jekyll-theme-amethyst/api/lorem/amet/ "> Example.amet()</ a > </ h2 >
88+ < h2 id ="example-amet " class =" no_toc " > < a href ="/jekyll-theme-amethyst/api/lorem/amet/ "> Example.amet()</ a > </ h2 >
8189< p > < strong > DEPRECATED</ strong > I'll be deprecated soon.</ p >
8290
83- < h2 id ="example-dolor "> < a href ="/jekyll-theme-amethyst/api/lorem/dolor/ "> Example.dolor()</ a > </ h2 >
91+ < h2 id ="example-dolor " class =" no_toc " > < a href ="/jekyll-theme-amethyst/api/lorem/dolor/ "> Example.dolor()</ a > </ h2 >
8492< p > < strong > DEPRECATED</ strong > Soon to be removed.</ p >
8593
86- < h2 id ="example-sit "> < a href ="/jekyll-theme-amethyst/api/lorem/sit/ "> Example.sit()</ a > </ h2 >
94+ < h2 id ="example-sit " class =" no_toc " > < a href ="/jekyll-theme-amethyst/api/lorem/sit/ "> Example.sit()</ a > </ h2 >
8795< p > < strong > REMOVED</ strong > Hello, I've been through it all.</ p >
8896</ div >
8997
9098</ article >
9199</ div >
92100< aside class ="sidebar " role ="complementary ">
93101
94- < h4 > < a href ="/jekyll-theme-amethyst/api/foo/ "> Foobar</ a > </ h4 >
102+ < h4 > < a href ="/jekyll-theme-amethyst/api/foo/ "> Foobar without TOC </ a > </ h4 >
95103
96104
97- < h4 class ="sidebar-title-open "> < a href ="/jekyll-theme-amethyst/api/lorem/ "> Lorem ipsum </ a > </ h4 >
105+ < h4 class ="sidebar-title-open "> < a href ="/jekyll-theme-amethyst/api/lorem/ "> Lorem with TOC </ a > </ h4 >
98106 < ul class ="sidebar-list "> < li class ="sidebar-item ">
99107 < a href ="/jekyll-theme-amethyst/api/lorem/amet/ "> Example.amet()</ a >
100108 </ li > < li class ="sidebar-item ">
@@ -110,7 +118,8 @@ <h4><a href="/jekyll-theme-amethyst/api/removed/">Removed</a></h4>
110118
111119
112120 < h4 > < a href ="/jekyll-theme-amethyst/api/foo/quux/ "> Quux</ a > </ h4 >
113-
121+ < hr > < div class ="toc-wrapper ">
122+ < h4 > Table of contents</ h4 > < ol class ="toc "> < li class ="sidebar-item "> < a href ="#heading "> Heading</ a > </ li > < li class ="sidebar-item "> < a href ="#another "> Another</ a > </ li > </ ol > </ div >
114123</ aside >
115124
116125</ div >
0 commit comments