diff --git a/_includes/sidebar.html b/_includes/sidebar.html index dd6d144..745a63a 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -75,7 +75,7 @@ {%- endif -%} {% endcapture %} - {% if url != '' %} + {% if url %} diff --git a/_layouts/default.html b/_layouts/default.html index 4b4b34c..b883a63 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -9,19 +9,13 @@ layout: compress -{% if site.lang %} - {% assign lang = site.lang | split: "_" | first %} -{% else %} - {% assign lang = 'en' %} -{% endif %} - {% capture prefer_mode %} - {% if site.theme_mode != "dual" %} + {% unless site.theme_mode == "dual" %} mode="{{ site.theme_mode }}" - {% endif %} + {% endunless %} {% endcapture %} - + {% include head.html %}