소스 검색

fix: bundle darkmode

pull/4/head
Rohan Verma 6 년 전
부모
커밋
c55cef9509
3개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -0
      content/static/js/darkmode.mjs
  2. +1
    -1
      layouts/partials/body/scripts.html
  3. +1
    -1
      layouts/partials/head/custom.html

+ 2
- 0
content/static/js/darkmode.mjs
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 1
- 1
layouts/partials/body/scripts.html 파일 보기

@@ -1,5 +1,5 @@
<script type="module">
import * as DarkModeToggle from 'https://unpkg.com/dark-mode-toggle';
import * as DarkModeToggle from '/static/js/darkmode.mjs';

const toggle = document.querySelector('dark-mode-toggle');
const body = document.body;

+ 1
- 1
layouts/partials/head/custom.html 파일 보기

@@ -2,4 +2,4 @@
<link rel="authorization_endpoint" href="https://indieauth.com/auth">
<link rel="webmention" href="https://webmention.io/rohanverma.net/webmention" />
<link rel="pingback" href="https://webmention.io/rohanverma.net/xmlrpc" />
<script type="module" src="https://unpkg.com/dark-mode-toggle"></script>
<script type="module" src="/static/js/darkmode.mjs"></script>

Loading…
취소
저장