summaryrefslogtreecommitdiff
path: root/_includes/views/header.html
diff options
context:
space:
mode:
authorjeffreytse <jeffreytse.mail@gmail.com>2021-08-12 12:02:44 +0800
committerjeffreytse <jeffreytse.mail@gmail.com>2021-08-12 12:13:12 +0800
commit9ecb45bd4e0e07750609347f220acd0455763b64 (patch)
treeae2e555dd6c9abc95243ceabd89b810b4f2d7738 /_includes/views/header.html
parentf06b7b0e62d5cb6c9fe2dacf4a0f59cfedf3dd5e (diff)
fix: inaccurate google translation behavior (#55)
Diffstat (limited to '_includes/views/header.html')
-rw-r--r--_includes/views/header.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/_includes/views/header.html b/_includes/views/header.html
index ba707b0..c43d7ec 100644
--- a/_includes/views/header.html
+++ b/_includes/views/header.html
@@ -44,6 +44,9 @@
{%- include functions.html func='get_value' -%}
{%- assign translate_langs = return -%}
{%- if translate_langs.size > 0 -%}
+ {%- assign name = 'lang' -%}
+ {%- include functions.html func='get_value' default='en' -%}
+ {%- assign lang = return -%}
<span class="page-link">
{%- include extensions/google-translate.html -%}
</span>