add LanguageDirection variable

This commit is contained in:
FarisZR 2022-03-03 15:04:14 +03:00
parent 24cd07589b
commit fea226642c

View File

@ -1,5 +1,6 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<html lang="{{ .Site.LanguageCode }}" class="direction-{{ .Language.LanguageDirection | default "ltr" }}">
<!-- add LanguageDirection variable, insipred by https://github.com/adityatelange/hugo-PaperMod/pull/47 -->
<head>
{{- partial "head/head.html" . -}}
{{- block "head" . -}}{{ end }}