Improve the way to set the default value of locales

This commit is contained in:
Cotes Chung
2021-08-01 22:04:11 +08:00
parent 780af9ac5f
commit 0213331a16
23 changed files with 87 additions and 60 deletions
+3 -1
View File
@@ -5,13 +5,15 @@ layout: compress
<!DOCTYPE html>
{% include lang.html %}
{% capture prefer_mode %}
{% if site.theme_mode %}
mode="{{ site.theme_mode }}"
{% endif %}
{% endcapture %}
<html lang="{{ site.lang | default: 'en' }}" {{ prefer_mode }}>
<html lang="{{ site.lang }}" {{ prefer_mode }}>
{% include head.html %}