File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
layouts/partials/docs/inject Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1616
1717
1818< script >
19- var html = document . documentElement ;
19+ var html = document . documentElement ;
2020 //Check Storage. Keep user preference on page reload
2121 if ( localStorage . getItem ( 'themeMode' ) == 'dark' ) {
2222 html . setAttribute ( "data-theme" , "dark" ) ;
2525 html . setAttribute ( "data-theme" , "light" ) ;
2626 }
2727 </ script >
28-
28+
2929 {{if .Page.Params.mermaid}}
3030< script src ="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js "> </ script >
3131< script >
32- const themeMode = localStorage . getItem ( 'themeMode' ) || 'light' ;
32+ const themeMode = localStorage . getItem ( 'themeMode' ) || 'light' ;
3333mermaid . initialize ( { startOnLoad :true , theme :themeMode === "dark" ? "dark" : "light" } ) ;
3434const style = document . createElement ( "style" ) ;
3535style . textContent = `
4141` ;
4242document . head . appendChild ( style ) ;
4343</ script >
44+
45+ < link rel ="manifest " href ="https://progressier.app/oU0WwamIj66XOv6r96hb/progressier.json "/>
46+ < script defer src ="https://progressier.app/oU0WwamIj66XOv6r96hb/script.js "> </ script >
4447{{end}}
You can’t perform that action at this time.
0 commit comments