summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_config.yml31
-rw-r--r--_data/translate_langs.yml3
-rw-r--r--_includes/functions/get_value.html2
-rw-r--r--_sass/misc/google-translate.scss1
-rw-r--r--archives.html2
-rw-r--r--categories.html2
-rw-r--r--tags.html2
7 files changed, 39 insertions, 4 deletions
diff --git a/_config.yml b/_config.yml
index dedafeb..43d288c 100644
--- a/_config.yml
+++ b/_config.yml
@@ -24,6 +24,36 @@ yat:
# If you want more debug log, you can set true
# debug: true
+# Translate languges
+# langs refer to https://cloud.google.com/translate/docs/languages
+# translate_langs:
+# - lang: en
+# text: English
+#
+# - lang: fr
+# img: https://www.countryflags.io/fr/flat/64.png
+# text: Franch
+#
+# - lang: zh-CN
+# img: https://www.countryflags.io/cn/flat/64.png
+# text: Chinese(Simple)
+#
+# - lang: zh-TW
+# img: https://www.countryflags.io/tw/flat/64.png
+# text: Chinese(Traditional)
+#
+# - lang: ja
+# img: https://www.countryflags.io/jp/flat/64.png
+# text: Japan
+#
+# - lang: ko
+# img: https://www.countryflags.io/kr/flat/64.png
+# text: Korean
+#
+# - lang: ru
+# img: https://www.countryflags.io/ru/flat/64.png
+# text: Russia
+
# You can choose a theme color
# Default theme colors as below:
# spacegrey: #222222
@@ -71,7 +101,6 @@ yat:
# Build settings
markdown: kramdown
-theme: jekyll-theme-yat
plugins:
- jekyll-feed
diff --git a/_data/translate_langs.yml b/_data/translate_langs.yml
index 977e69e..bc6e7ba 100644
--- a/_data/translate_langs.yml
+++ b/_data/translate_langs.yml
@@ -1,3 +1,6 @@
+# Translate languges
+# langs refer to https://cloud.google.com/translate/docs/languages
+
- lang: en
img: https://www.countryflags.io/us/flat/64.png
text: English
diff --git a/_includes/functions/get_value.html b/_includes/functions/get_value.html
index 2d90b19..17561a2 100644
--- a/_includes/functions/get_value.html
+++ b/_includes/functions/get_value.html
@@ -6,6 +6,8 @@
{%- if page[name] -%}
{%- assign return = page[name] -%}
+{%- elsif site[name] -%}
+ {%- assign return = site[name] -%}
{%- elsif site.data[name] -%}
{%- assign return = site.data[name] -%}
{%- elsif site.defaults[page.layout][name] -%}
diff --git a/_sass/misc/google-translate.scss b/_sass/misc/google-translate.scss
index 97519a5..d2cae1a 100644
--- a/_sass/misc/google-translate.scss
+++ b/_sass/misc/google-translate.scss
@@ -135,6 +135,7 @@ body {
a {
display: block;
+ color: invert($theme-color);
img {
width: 24px;
diff --git a/archives.html b/archives.html
index 41d866c..d470d28 100644
--- a/archives.html
+++ b/archives.html
@@ -1,4 +1,4 @@
---
layout: archives
-title: ARCHIVES
+title: archives
---
diff --git a/categories.html b/categories.html
index 41faf06..9e271e8 100644
--- a/categories.html
+++ b/categories.html
@@ -1,4 +1,4 @@
---
layout: categories
-title: CATEGORIES
+title: categories
---
diff --git a/tags.html b/tags.html
index 0dd4e44..85ca349 100644
--- a/tags.html
+++ b/tags.html
@@ -1,4 +1,4 @@
---
layout: tags
-title: TAGS
+title: tags
---