diff options
author | 2021-07-13 10:57:40 -0400 | |
---|---|---|
committer | 2021-07-13 10:57:40 -0400 | |
commit | 4b1f5c3dc627e62b78a6993f502a35712cb9f400 (patch) | |
tree | 0692da531038b8d59b7662feb98c4ca76aed2e8f /examples/blog-multiple-authors/src | |
parent | 3f14bed413074aba0ab9199d3a2e24802f51eb72 (diff) | |
download | astro-4b1f5c3dc627e62b78a6993f502a35712cb9f400.tar.gz astro-4b1f5c3dc627e62b78a6993f502a35712cb9f400.tar.zst astro-4b1f5c3dc627e62b78a6993f502a35712cb9f400.zip |
code review comments
Diffstat (limited to 'examples/blog-multiple-authors/src')
4 files changed, 4 insertions, 8 deletions
diff --git a/examples/blog-multiple-authors/src/pages/$author.astro b/examples/blog-multiple-authors/src/pages/$author.astro index bcd9d76af..e0a6a1919 100644 --- a/examples/blog-multiple-authors/src/pages/$author.astro +++ b/examples/blog-multiple-authors/src/pages/$author.astro @@ -8,7 +8,6 @@ import Pagination from '../components/Pagination.astro'; let title = 'Don’s Blog'; let description = 'An example blog on Astro'; let canonicalURL = Astro.request.canonicalURL; -let lang = 'en'; // collection import authorData from '../data/authors.json'; @@ -46,7 +45,7 @@ export async function createCollection() { const author = authorData[collection.params.author]; --- -<html lang={ lang ?? 'en' }> +<html lang="en"> <head> <title>{title}</title> <MainHead diff --git a/examples/blog-multiple-authors/src/pages/$posts.astro b/examples/blog-multiple-authors/src/pages/$posts.astro index c535b581d..a31004c05 100644 --- a/examples/blog-multiple-authors/src/pages/$posts.astro +++ b/examples/blog-multiple-authors/src/pages/$posts.astro @@ -8,7 +8,6 @@ import Pagination from '../components/Pagination.astro'; let title = 'Don’s Blog'; let description = 'An example blog on Astro'; let canonicalURL = Astro.request.canonicalURL; -let lang = 'en'; // collection import authorData from '../data/authors.json'; @@ -39,7 +38,7 @@ export async function createCollection() { } --- -<html lang={ lang ?? 'en' }> +<html lang="en"> <head> <title>{title}</title> <MainHead diff --git a/examples/blog-multiple-authors/src/pages/about.astro b/examples/blog-multiple-authors/src/pages/about.astro index 17035a88e..44a9424cf 100644 --- a/examples/blog-multiple-authors/src/pages/about.astro +++ b/examples/blog-multiple-authors/src/pages/about.astro @@ -3,9 +3,8 @@ import MainHead from '../components/MainHead.astro'; import Nav from '../components/Nav.astro'; let title = "About"; -let lang = 'en'; --- -<html lang={ lang ?? 'en' }> +<html lang="en"> <head> <MainHead title={title} diff --git a/examples/blog-multiple-authors/src/pages/index.astro b/examples/blog-multiple-authors/src/pages/index.astro index 400d04292..f8728f542 100644 --- a/examples/blog-multiple-authors/src/pages/index.astro +++ b/examples/blog-multiple-authors/src/pages/index.astro @@ -12,7 +12,6 @@ import authorData from '../data/authors.json'; // All variables are available to use in the HTML template below. let title = 'Don’s Blog'; let description = 'An example blog on Astro'; -let lang = 'en'; // Data Fetching: List all Markdown posts in the repo. let allPosts = Astro.fetchContent('./post/*.md'); @@ -22,7 +21,7 @@ let firstPage = allPosts.slice(0, 2); // Full Astro Component Syntax: // https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md --- -<html lang={ lang ?? 'en' }> +<html lang="en"> <head> <title>{title}</title> <MainHead |