summaryrefslogtreecommitdiff
path: root/_includes/snippets/get-lang.html
diff options
context:
space:
mode:
Diffstat (limited to '_includes/snippets/get-lang.html')
-rw-r--r--_includes/snippets/get-lang.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/_includes/snippets/get-lang.html b/_includes/snippets/get-lang.html
new file mode 100644
index 0000000..028c52a
--- /dev/null
+++ b/_includes/snippets/get-lang.html
@@ -0,0 +1,6 @@
+{%- assign __return = site.data.variables.default.lang -%}
+{%- if page.lang -%}
+ {%- assign __return = page.lang -%}
+{%- elsif site.lang -%}
+ {%- assign __return = site.lang -%}
+{%- endif -%}