diff options
Diffstat (limited to 'www/src')
-rw-r--r-- | www/src/layouts/Blog.astro | 2 | ||||
-rw-r--r-- | www/src/pages/blog/index.astro | 3 | ||||
-rw-r--r-- | www/src/pages/blog/introducing-astro.astro | 3 | ||||
-rw-r--r-- | www/src/pages/index.astro | 3 | ||||
-rw-r--r-- | www/src/pages/posts/introducing-astro.astro | 3 |
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" /> |