Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFarisZR <35614734+fariszr@users.noreply.github.com>2022-03-04 02:25:34 +0300
committerGitHub <noreply@github.com>2022-03-04 02:25:34 +0300
commit0d0375a7fcf82023be80a7370d789083c1250f60 (patch)
tree1c0b28b7fbeefc8bee17191d250b8dfa6635811c /layouts
parent86ad00cf8cbbc6b212d68afcedf28cda8b552690 (diff)
feat: add RTL Support and update demo site to Show Arabic/RTL content (#519)
* add LanguageDirection variable * add .direction-rtl and .direction-ltr clases * margin -right > margin-inline-end * keep Codeblocks LTR * switch to logical properties * left -> inset-inline-start * Add Arabic/RTL placeholder text * Add arabic language * remove space * use Html Dir instead of class * Move codeblock code to layout/article.css and fix 4 spaces codeblocks * remove unused clases
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/baseof.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index db1903e..98cc815 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html lang="{{ .Site.LanguageCode }}">
+<html lang="{{ .Site.LanguageCode }}" dir="{{ default `ltr` .Language.LanguageDirection }}">
<head>
{{- partial "head/head.html" . -}}
{{- block "head" . -}}{{ end }}