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>
This commit is contained in:
Abdullah Mzaien 2021-08-04 22:33:55 +03:00 committed by GitHub
parent a1e5d04118
commit 81c885f54f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ const currentFile = `src/pages${currentPage.replace(/\/$/, "")}.md`;
const githubEditUrl = `https://github.com/snowpackjs/astro/blob/main/docs/${currentFile}`; 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> <head>
<HeadCommon /> <HeadCommon />
<HeadSEO {content} canonicalURL={Astro.request.canonicalURL} /> <HeadSEO {content} canonicalURL={Astro.request.canonicalURL} />

View file

@ -6,7 +6,7 @@ import { SITE } from "../config.ts";
const { title } = Astro.props; const { title } = Astro.props;
--- ---
<html lang="en-us" class="initial"> <html dir="ltr" lang="en-us" class="initial">
<head> <head>
<HeadCommon /> <HeadCommon />
<title>{`${title} 🚀 ${SITE.title}`}</title> <title>{`${title} 🚀 ${SITE.title}`}</title>