diff options
author | Jeffrey Tse <jeffreytse.mail@gmail.com> | 2019-09-13 15:52:19 +0800 |
---|---|---|
committer | Jeffrey Tse <jeffreytse.mail@gmail.com> | 2019-09-13 15:52:19 +0800 |
commit | 9241888333d7c0bce62c292a97373b8c26a714d4 (patch) | |
tree | 7fdfe9f4bf9e1a6ed1b6f4153a41cacf9eb934b2 /_includes | |
parent | 40b20a9a188cb151a9cc2f9113f9aff48153940c (diff) |
chore: adjust something about translate langs, etc
Diffstat (limited to '_includes')
-rw-r--r-- | _includes/functions/get_value.html | 2 |
1 files changed, 2 insertions, 0 deletions
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] -%} |