mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-12-18 05:41:31 +00:00
Refactor theme mode toggle
- Improve mode switching JS execution priority - Drop deprecated Web API
This commit is contained in:
@@ -13,10 +13,14 @@ layout: compress
|
||||
{% endif %}
|
||||
{% endcapture %}
|
||||
|
||||
<html lang="{{ site.lang }}" {{ prefer_mode }}>
|
||||
<html lang="{{ site.lang }}"{{ prefer_mode }}>
|
||||
|
||||
{% include head.html %}
|
||||
|
||||
{% unless site.theme_mode %}
|
||||
{% include mode-toggle.html %}
|
||||
{% endunless %}
|
||||
|
||||
<body data-spy="scroll" data-target="#toc">
|
||||
|
||||
{% include sidebar.html %}
|
||||
|
||||
Reference in New Issue
Block a user