mirror of
https://github.com/caddyserver/website.git
synced 2025-04-26 06:56:15 -04:00
Include the dark-mode-toggle lib from file rather than CDN
This commit is contained in:
parent
7ee79e96fb
commit
827c44cc28
2 changed files with 4 additions and 2 deletions
|
@ -1,9 +1,9 @@
|
|||
{{include "/includes/head.html"}}
|
||||
<!-- https://github.com/GoogleChromeLabs/dark-mode-toggle -->
|
||||
<script type="module" src="https://unpkg.com/dark-mode-toggle"></script>
|
||||
<script type="module" src="/resources/js/dark-mode-toggle.min.js"></script>
|
||||
<!-- modulepreload is still experimental as of this writing, but works in Chrome -->
|
||||
<!-- should help avoid some of the flicker on page load -->
|
||||
<link rel="modulepreload" src="https://unpkg.com/dark-mode-toggle" crossorigin>
|
||||
<link rel="modulepreload" src="/resources/js/dark-mode-toggle.min.js" crossorigin>
|
||||
|
||||
<link rel="stylesheet" href="/resources/css/docs.css">
|
||||
<link rel="stylesheet" href="/resources/css/docs-dark.css" media="(prefers-color-scheme: dark)">
|
||||
|
|
2
src/resources/js/dark-mode-toggle.min.js
vendored
Normal file
2
src/resources/js/dark-mode-toggle.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue