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 2020-10-19 12:47:23 +03:30 committed by GitHub
parent a41f09bb99
commit a153a7cc6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 34 additions and 22 deletions

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" . }}