diff --git a/layouts/partials/function/langCode.html b/layouts/partials/function/langCode.html new file mode 100644 index 0000000..68e892d --- /dev/null +++ b/layouts/partials/function/langCode.html @@ -0,0 +1,9 @@ +{{- $res := false -}} + +{{- range . -}} + {{- if eq site.LanguageCode . -}} + {{- $res = true -}} + {{- end -}} +{{- end -}} + +{{- return $res -}}