summaryrefslogtreecommitdiffstats
path: root/layouts/partials/func/GetLanguageDirection.html
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-04-27 00:08:33 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-04-27 00:08:33 +0200
commitd356641e2b45db0f87f64956ff91240edadf0a97 (patch)
treefa92db35674ece56b3cc0f3f9cef52d39cb12ade /layouts/partials/func/GetLanguageDirection.html
parent38ccf62df5666b067fe63fa9dfd262fdef012706 (diff)
downloadgohugo-theme-ed-d356641e2b45db0f87f64956ff91240edadf0a97.tar.gz
Define GetLanguageDirection function
Diffstat (limited to 'layouts/partials/func/GetLanguageDirection.html')
-rw-r--r--layouts/partials/func/GetLanguageDirection.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/partials/func/GetLanguageDirection.html b/layouts/partials/func/GetLanguageDirection.html
new file mode 100644
index 0000000..fe107a8
--- /dev/null
+++ b/layouts/partials/func/GetLanguageDirection.html
@@ -0,0 +1,5 @@
+{{ $dir := "" }}
+{{ with site.Language.LanguageDirection }}
+ {{ $dir = . }}
+{{ end }}
+{{ return $dir }}