Skip to content

Commit 372af05

Browse files
committed
Add option to disable toc
1 parent 332c8e6 commit 372af05

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

templates/monogame/layout/_master.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
{{>partials/theme}}
1616
{{>partials/analytics}}
1717

18-
<body class="tex2jax_ignore" data-layout="{{_layout}}{{layout}}" data-yaml-mime="{{yamlmime}}">
18+
<body class="tex2jax_ignore" data-layout="{{_layout}}{{layout}}" data-disable-toc="{{_disableToc}}" data-yaml-mime="{{yamlmime}}">
1919
{{>partials/topnav}}
2020

2121
<main class="container-xxl">

templates/monogame/public/main.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ body[data-layout="landing"] > main {
4444
max-width: 1320px !important;
4545
}
4646

47+
body[data-disable-toc="true" i] .toc-offcanvas {
48+
visibility: hidden;
49+
}
50+
4751

4852
/*******************************************************************************
4953
*** Section: Bootstrap Overrides

0 commit comments

Comments
 (0)