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:
parent
a1e5d04118
commit
81c885f54f
2 changed files with 2 additions and 2 deletions
|
@ -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} />
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue