File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change
1
+ document . addEventListener ( "DOMContentLoaded" , function ( ) {
2
+ // Check if we are on the home page
3
+ if ( window . location . pathname === "/" || window . location . pathname . endsWith ( "index.html" ) ) {
4
+ document . querySelectorAll ( ".md-nav__toggle" ) . forEach ( ( el ) => {
5
+ el . checked = true ; // Expand all categories
6
+ } ) ;
7
+ }
8
+ } ) ;
Original file line number Diff line number Diff line change @@ -41,12 +41,14 @@ theme:
41
41
name : Switch to light mode
42
42
features :
43
43
- navigation.tabs
44
+ # - navigation.sections
44
45
# - navigation.tabs.sticky
45
46
- navigation.path
46
47
- navigation.top
47
48
- navigation.indexes
48
49
- navigation.instant.progress
49
50
- navigation.path
51
+ # - navigation.expand
50
52
- header
51
53
- search.suggest
52
54
- search.share
@@ -61,6 +63,8 @@ extra_css:
61
63
62
64
extra_javascript :
63
65
- https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/js/all.min.js
66
+ - assets/javascripts/navigation-expand.js
67
+
64
68
65
69
hooks :
66
70
- hooks/socialmedia.py
You can’t perform that action at this time.
0 commit comments