Skip to content

Commit

Permalink
Update head.html
Browse files Browse the repository at this point in the history
  • Loading branch information
GaAs9000 authored Feb 4, 2025
1 parent 0d7d7d4 commit ffd9824
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,3 @@
<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">


<script>
// 立即加载保存的主题
const savedTheme = localStorage.getItem('theme') ||
(window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
document.documentElement.setAttribute('data-theme', savedTheme);
</script>

0 comments on commit ffd9824

Please sign in to comment.