1
0
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:
Cotes Chung
2020-12-07 01:14:40 +08:00
parent 8d4c555638
commit bb13b52d44
3 changed files with 10 additions and 9 deletions

View File

@@ -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 %}