Add RTL support for multilingual mode (#47)

Usage: 
in site config:
languages:
  ar:
    languagedirection: rtl
    title: مدونتي
    weight: 2

* ref: https://gohugo.io/content-management/multilingual/#configure-languages
This commit is contained in:
Mehdy Khoshnoody authored and GitHub committed 2020-10-19 14:47:23 +05:30
1 parent a41f09bb99
commit a153a7cc6f
5 files changed
+34 -22

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="{{ .Site.Language }}">
<html lang="{{ .Site.Language }}" class="direction-{{ .Language.LanguageDirection | default "ltr" }}">
<head>
{{- partial "head.html" . }}