Skip to content

Commit 70428a0

Browse files
committed
Update drkmd script tag
1 parent 288a479 commit 70428a0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

_layouts/default.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<!--[if lt IE 9]>
1212
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
1313
<![endif]-->
14-
<script src="https://cdn.jsdelivr.net/npm/drkmd-js/dist/drkmd-js.min.js"></script>
14+
<script src="https://cdn.jsdelivr.net/npm/drkmd-js/dist/drkmd-js.min.js" data-drkmd-opts='{ "autoMatchOsTheme": false, "attach": true }'></script>
1515
</head>
1616
<body>
1717
<div class="wrapper">
@@ -51,8 +51,5 @@ <h1><a href="{{ "/" | absolute_url }}">{{ site.title | default: site.github.repo
5151
</footer>
5252
</div>
5353
<script src="{{ "/assets/js/scale.fix.js" | relative_url }}"></script>
54-
<script>
55-
new Darkmode({ autoMatchOsTheme: false }).attach()
56-
</script>
5754
</body>
5855
</html>

0 commit comments

Comments
 (0)