summaryrefslogtreecommitdiff
path: root/www/src
diff options
context:
space:
mode:
authorGravatar Caleb Jasik <calebjasik@jasik.xyz> 2021-07-12 19:20:52 -0500
committerGravatar GitHub <noreply@github.com> 2021-07-12 20:20:52 -0400
commit1b13f5c158b5fbe157406308205c0939b415e1d7 (patch)
tree2f15e925cb0a7c6b2e44d4160c2a02f688d3f40b /www/src
parent7583a8b42a6db44ca589398dba0cd9fe53643bef (diff)
downloadastro-1b13f5c158b5fbe157406308205c0939b415e1d7.tar.gz
astro-1b13f5c158b5fbe157406308205c0939b415e1d7.tar.zst
astro-1b13f5c158b5fbe157406308205c0939b415e1d7.zip
Add `lang` attribute to pages on https://astro.build (#668)
Diffstat (limited to 'www/src')
-rw-r--r--www/src/layouts/Blog.astro2
-rw-r--r--www/src/pages/blog/index.astro3
-rw-r--r--www/src/pages/blog/introducing-astro.astro3
-rw-r--r--www/src/pages/index.astro3
-rw-r--r--www/src/pages/posts/introducing-astro.astro3
5 files changed, 9 insertions, 5 deletions
diff --git a/www/src/layouts/Blog.astro b/www/src/layouts/Blog.astro
index d1737bfb7..b45fc7dc4 100644
--- a/www/src/layouts/Blog.astro
+++ b/www/src/layouts/Blog.astro
@@ -8,7 +8,7 @@ const { content } = Astro.props;
const headers = content?.astro?.headers;
---
-<html>
+<html lang={ content?.lang ?? 'en' }>
<head>
<title>{content?.title}</title>
diff --git a/www/src/pages/blog/index.astro b/www/src/pages/blog/index.astro
index 8eafa927a..264f5cfec 100644
--- a/www/src/pages/blog/index.astro
+++ b/www/src/pages/blog/index.astro
@@ -6,9 +6,10 @@ import BlogPostPreview from '../../components/BlogPostPreview.astro';
let title = 'Astro Blog';
let description = 'Everything you need to know about Astro, direct from mission control.';
let permalink = 'https://astro.build/blog';
+let lang = 'en';
---
-<html>
+<html lang={ lang ?? 'en' }>
<head>
<BaseHead title={title} description={description} permalink={permalink} />
<link rel="stylesheet" href="/blog.css" />
diff --git a/www/src/pages/blog/introducing-astro.astro b/www/src/pages/blog/introducing-astro.astro
index dc72a6a98..07ac8737c 100644
--- a/www/src/pages/blog/introducing-astro.astro
+++ b/www/src/pages/blog/introducing-astro.astro
@@ -13,9 +13,10 @@ let publishDate = 'Tuesday, June 8 2021';
let author = 'fred';
let heroImage = '/social.jpg';
let permalink = 'https://astro.build/blog/introducing-astro';
+let lang = 'en';
---
-<html>
+<html lang={ lang ?? 'en' }>
<head>
<BaseHead title={title} description={description} permalink={permalink} />
<link rel="stylesheet" href="/blog.css" />
diff --git a/www/src/pages/index.astro b/www/src/pages/index.astro
index aed9d752e..1a108d5b6 100644
--- a/www/src/pages/index.astro
+++ b/www/src/pages/index.astro
@@ -9,9 +9,10 @@ import Tagline from '../components/Tagline.astro';
let title = 'Astro';
let description = 'Build faster websites with less client-side JavaScript';
let permalink = 'https://astro.build/';
+let lang = 'en';
---
-<html>
+<html lang={ lang ?? 'en' }>
<head>
<BaseHead title={title} description={description} permalink={permalink} />
<link rel="stylesheet" href="/global.css" />
diff --git a/www/src/pages/posts/introducing-astro.astro b/www/src/pages/posts/introducing-astro.astro
index dc72a6a98..07ac8737c 100644
--- a/www/src/pages/posts/introducing-astro.astro
+++ b/www/src/pages/posts/introducing-astro.astro
@@ -13,9 +13,10 @@ let publishDate = 'Tuesday, June 8 2021';
let author = 'fred';
let heroImage = '/social.jpg';
let permalink = 'https://astro.build/blog/introducing-astro';
+let lang = 'en';
---
-<html>
+<html lang={ lang ?? 'en' }>
<head>
<BaseHead title={title} description={description} permalink={permalink} />
<link rel="stylesheet" href="/blog.css" />