0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-25 11:52:39 +00:00

Slight Rearrange of ToC theme names and menu

Reorders ToC inclusion options with slight relabel for clarity.
Changes assumptions on H4, H5, and H6 snippets to assume H1-H3 class should be explicitly stated.

change naming of addToToCH# to tocH#

more explicitly define .addToC to h1 to h3 changes for --TOC var.
This commit is contained in:
David Bolack
2024-05-12 12:00:55 -05:00
parent c0beae6e46
commit afb5ccec81
2 changed files with 27 additions and 23 deletions

View File

@@ -31,29 +31,29 @@ module.exports = [
gen : TableOfContentsGen,
},
{
name : 'Include up to H4',
icon : 'fas fa-dice-four',
gen : dedent `{{addToCH4
}}`,
},
{
name : 'Include up to H5',
icon : 'fas fa-dice-five',
gen : dedent `{{addToCH5
}}`,
},
{
name : 'Include up to H6',
icon : 'fas fa-dice-six',
gen : dedent `{{addToCH6
}}`,
},
{
name : 'Include in ToC',
name : 'Include in ToC up to H3',
icon : 'fas fa-dice-six',
gen : dedent `{{addToC
}}`,
},
{
name : 'Include in ToC up to H4',
icon : 'fas fa-dice-four',
gen : dedent `{{addToC,tocH4
}}`,
},
{
name : 'Include in ToC up to H5',
icon : 'fas fa-dice-five',
gen : dedent `{{addToC,tocH5
}}`,
},
{
name : 'Include in ToC up to H6',
icon : 'fas fa-dice-six',
gen : dedent `{{addToC,tocH6
}}`,
}
]
},

View File

@@ -794,20 +794,24 @@ h6,
.noToC,
.toc { --TOC: exclude; }
.addToCH4 {
.tocH4 {
h4 { --TOC: include; }
}
.addToCH5 {
.tocH5 {
h4 { --TOC: include; }
h5 { --TOC: include; }
}
.addToCH6 {
.tocH6 {
h4 { --TOC: include; }
h5 { --TOC: include; }
h6 { --TOC: include; }
}
.addToC { --TOC: include; }
.addToC {
h1 {--TOC: include; }
h2 {--TOC: include; }
h3 {--TOC: include; }
}
.page {
&:has(.toc)::after { display : none; }