mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-17 16:42:41 +00:00
Correct ToC Global toggles subsnippets
The snippets incorrectedly reflected their previous incarnation as part of the Styles tab menus.
This commit is contained in:
@@ -155,36 +155,24 @@ module.exports = [
|
|||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
name : 'Table of Contents Toggles',
|
name : 'Table of Contents Toggles',
|
||||||
icon : 'fas fa-book',
|
icon : 'fas fa-book',
|
||||||
gen : dedent`/* Add ToC include for H3, H4, H5, and H6 level Headers */
|
gen : `{{tocGlobalH4}}\n\n`,
|
||||||
.page h3, .page h4, .page h5, .page h6 {
|
|
||||||
--TOC: include;
|
|
||||||
}\n\n`,
|
|
||||||
subsnippets : [
|
subsnippets : [
|
||||||
{
|
{
|
||||||
name : 'Enable H1-H4 all pages',
|
name : 'Enable H1-H4 all pages',
|
||||||
icon : 'fas fa-dice-four',
|
icon : 'fas fa-dice-four',
|
||||||
gen : dedent`/* Add ToC include for H3 and H4 level Headers */
|
gen : `{{tocGlobalH4}}\n\n`,
|
||||||
.page h3, .page h4 {
|
|
||||||
--TOC: include;
|
|
||||||
}\n\n`
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'Enable H1-H5 all pages',
|
name : 'Enable H1-H5 all pages',
|
||||||
icon : 'fas fa-dice-five',
|
icon : 'fas fa-dice-five',
|
||||||
gen : dedent`/* Add ToC include for H3, H4, and H5 level Headers */
|
gen : `{{tocGlobalH5}}\n\n`,
|
||||||
.page h3, .page h4, .page h5 {
|
|
||||||
--TOC: include;
|
|
||||||
}\n\n`
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'Enable H1-H6 all pages',
|
name : 'Enable H1-H6 all pages',
|
||||||
icon : 'fas fa-dice-six',
|
icon : 'fas fa-dice-six',
|
||||||
gen : dedent`/* Add ToC include for H3, H4, H5, and H6 level Headers */
|
gen : `{{tocGlobalH6}}\n\n`,
|
||||||
.page h3, .page h4, .page h5, .page h6 {
|
|
||||||
--TOC: include;
|
|
||||||
}\n\n`
|
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user