refactor: reduce language include file

This commit is contained in:
Cotes Chung
2022-10-19 04:22:13 +08:00
parent 6852ceb280
commit d96fa5aa0c
23 changed files with 59 additions and 85 deletions
-8
View File
@@ -1,8 +0,0 @@
{% comment %}
Detect appearance language and return it through variable "lang"
{% endcomment %}
{% if site.data.locales[site.lang] %}
{% assign lang = site.lang %}
{% else %}
{% assign lang = 'en' %}
{% endif %}