diff options
author | 2021-08-04 22:33:55 +0300 | |
---|---|---|
committer | 2021-08-04 12:33:55 -0700 | |
commit | 81c885f54f3b97a840955ce869794e3cc79b7c34 (patch) | |
tree | 0285770bdbf352f6a54f8564a7603735df40e67a | |
parent | a1e5d041186eeadccb922e363c890305df0bbcdc (diff) | |
download | astro-81c885f54f3b97a840955ce869794e3cc79b7c34.tar.gz astro-81c885f54f3b97a840955ce869794e3cc79b7c34.tar.zst astro-81c885f54f3b97a840955ce869794e3cc79b7c34.zip |
Adding Dir attribute to allow rtl languages to work (#982)
* Adding Dir attribute to allow rtl languges to work
* Update docs/src/layouts/MainLayout.astro
Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
-rw-r--r-- | docs/src/layouts/MainLayout.astro | 2 | ||||
-rw-r--r-- | docs/src/layouts/SplashLayout.astro | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/src/layouts/MainLayout.astro b/docs/src/layouts/MainLayout.astro index 0e9c39fc4..04416316d 100644 --- a/docs/src/layouts/MainLayout.astro +++ b/docs/src/layouts/MainLayout.astro @@ -14,7 +14,7 @@ const currentFile = `src/pages${currentPage.replace(/\/$/, "")}.md`; const githubEditUrl = `https://github.com/snowpackjs/astro/blob/main/docs/${currentFile}`; --- -<html lang="{content.lang ?? 'en-us'}" class="initial"> +<html dir="{content.dir ?? 'ltr'}" lang="{content.lang ?? 'en-us'}" class="initial"> <head> <HeadCommon /> <HeadSEO {content} canonicalURL={Astro.request.canonicalURL} /> diff --git a/docs/src/layouts/SplashLayout.astro b/docs/src/layouts/SplashLayout.astro index 69d3f90b6..d2b00e9bc 100644 --- a/docs/src/layouts/SplashLayout.astro +++ b/docs/src/layouts/SplashLayout.astro @@ -6,7 +6,7 @@ import { SITE } from "../config.ts"; const { title } = Astro.props; --- -<html lang="en-us" class="initial"> +<html dir="ltr" lang="en-us" class="initial"> <head> <HeadCommon /> <title>{`${title} 🚀 ${SITE.title}`}</title> |