From 99343682153353a0def7cd0ee7fc9f9d48fd81aa Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 18 Apr 2019 23:38:53 +0300 Subject: [PATCH] layouts: Set dir="auto" on some HTML elements When a site is rendered in Arabic the root HTML element gets the dir="rtl" attribute, but even Arabic sites might have an English title or footer, etc so we should set dir="auto" on those elements. --- layouts/_default/baseof.html | 6 +++--- layouts/partials/sidebar.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 7912c84..9e9663b 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -55,8 +55,8 @@ {{ if (ne .Site.Params.header_visible false) }}
-

{{ .Site.Title | safeHTML }}

- {{ if .Site.Params.description }}

{{ .Site.Params.description | markdownify }}

{{ end }} +

{{ .Site.Title | safeHTML }}

+ {{ if .Site.Params.description }}

{{ .Site.Params.description | markdownify }}

{{ end }}
{{ end }} @@ -81,7 +81,7 @@ {{ block "footer" . }}