mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-12-18 05:41:31 +00:00
Simplify theme-mode config
This commit is contained in:
@@ -10,12 +10,12 @@ layout: compress
|
||||
<!DOCTYPE html>
|
||||
|
||||
{% capture prefer_mode %}
|
||||
{% unless site.theme_mode == "dual" %}
|
||||
{% if site.theme_mode %}
|
||||
mode="{{ site.theme_mode }}"
|
||||
{% endunless %}
|
||||
{% endif %}
|
||||
{% endcapture %}
|
||||
|
||||
<html lang="{{ site.lang | split: "_" | first | default: "en" }}" {{ prefer_mode }} >
|
||||
<html lang="{{ site.lang | split: "_" | first | default: "en" }}" {{ prefer_mode }}>
|
||||
|
||||
{% include head.html %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user