diff options
author | 2021-07-13 11:04:27 -0400 | |
---|---|---|
committer | 2021-07-13 11:04:27 -0400 | |
commit | 783db7b3a06ac36be66fc861810280eb923a6888 (patch) | |
tree | d8438ac5f81324b1b1879c037983555658f8b769 /examples/blog/src | |
parent | c9915b60951ddd77976ccc2240ce7e9e46d7765f (diff) | |
parent | 4b1f5c3dc627e62b78a6993f502a35712cb9f400 (diff) | |
download | astro-783db7b3a06ac36be66fc861810280eb923a6888.tar.gz astro-783db7b3a06ac36be66fc861810280eb923a6888.tar.zst astro-783db7b3a06ac36be66fc861810280eb923a6888.zip |
Merge branch 'improve-lighthouse'
Diffstat (limited to 'examples/blog/src')
-rw-r--r-- | examples/blog/src/layouts/BlogPost.astro | 2 | ||||
-rw-r--r-- | examples/blog/src/pages/index.astro | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/blog/src/layouts/BlogPost.astro b/examples/blog/src/layouts/BlogPost.astro index e6b644789..1b02d7aad 100644 --- a/examples/blog/src/layouts/BlogPost.astro +++ b/examples/blog/src/layouts/BlogPost.astro @@ -7,7 +7,7 @@ import BlogPost from '../components/BlogPost.astro'; const {content} = Astro.props; const {title, description, publishDate, author, heroImage, permalink} = content; --- -<html> +<html lang={ content.lang ?? 'en' }> <head> <BaseHead title={title} description={description} permalink={permalink} /> <link rel="stylesheet" href="/blog.css" /> diff --git a/examples/blog/src/pages/index.astro b/examples/blog/src/pages/index.astro index 13b28d9db..017daa54a 100644 --- a/examples/blog/src/pages/index.astro +++ b/examples/blog/src/pages/index.astro @@ -19,7 +19,7 @@ allPosts = allPosts.sort((a, b) => new Date(b.publishDate) - new Date(a.publishD // Full Astro Component Syntax: // https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md --- -<html> +<html lang="en"> <head> <BaseHead title={title} description={description} permalink={permalink} /> <link rel="stylesheet" href="/blog.css" /> |