From 1b13f5c158b5fbe157406308205c0939b415e1d7 Mon Sep 17 00:00:00 2001 From: Caleb Jasik Date: Mon, 12 Jul 2021 19:20:52 -0500 Subject: [PATCH] Add `lang` attribute to pages on https://astro.build (#668) --- www/src/layouts/Blog.astro | 2 +- www/src/pages/blog/index.astro | 3 +- www/src/pages/blog/introducing-astro.astro | 3 +- www/src/pages/index.astro | 3 +- www/src/pages/posts/introducing-astro.astro | 3 +- yarn.lock | 43 ++++++++++++++++++--- 6 files changed, 46 insertions(+), 11 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; --- - + {content?.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'; --- - + 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'; --- - + 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'; --- - + 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'; --- - + diff --git a/yarn.lock b/yarn.lock index 6ccd19aed..fa2bad372 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2923,7 +2923,7 @@ ci-info@^3.2.0: resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.2.0.tgz#2876cb948a498797b5236f0095bc057d0dca38b6" integrity sha512-dVqRX7fLUm8J6FgHJ418XuIgDLZDkYcDFTeL6TA2gt5WlIZUQrrH6EZrNClwT/H0FateUsZkGIOPRrLbP+PR9A== -cjs-module-lexer@^1.0.0: +cjs-module-lexer@^1.0.0, cjs-module-lexer@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.2.1.tgz#2fd46d9906a126965aa541345c499aaa18e8cd73" integrity sha512-jVamGdJPDeuQilKhvVn1h3knuMOZzr8QDnpk+M9aMlCaMkTDd6fBWPhiDqFvFZ07pL0liqabAiuy8SY4jGHeaw== @@ -4107,6 +4107,11 @@ es-module-lexer@^0.4.1: resolved "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.4.1.tgz" integrity sha512-ooYciCUtfw6/d2w56UVeqHPcoCFAiJdz5XOkYpv/Txl1HMUozpXjz/2RIQgqwKdXNDPSF1W7mJCFse3G+HDyAA== +es-module-lexer@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-0.6.0.tgz#e72ab05b7412e62b9be37c37a09bdb6000d706f0" + integrity sha512-f8kcHX1ArhllUtb/wVSyvygoKCznIjnxhLxy7TCvIiMdT7fL4ZDTIKaadMe6eLvOXg6Wk02UeoFgUoZ2EKZZUA== + es-to-primitive@^1.2.1: version "1.2.1" resolved "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz" @@ -4192,6 +4197,32 @@ esinstall@^1.0.0: validate-npm-package-name "^3.0.0" vm2 "^3.9.2" +esinstall@^1.1.7: + version "1.1.7" + resolved "https://registry.yarnpkg.com/esinstall/-/esinstall-1.1.7.tgz#ceabeb4b8685bf48c805a503e292dfafe4e0cb22" + integrity sha512-irDsrIF7fZ5BCQEAV5gmH+4nsK6JhnkI9C9VloXdmzJLbM1EcshPw8Ap95UUGc4ZJdzGeOrjV+jgKjQ/Z7Q3pg== + dependencies: + "@rollup/plugin-commonjs" "^16.0.0" + "@rollup/plugin-inject" "^4.0.2" + "@rollup/plugin-json" "^4.0.0" + "@rollup/plugin-node-resolve" "^10.0.0" + "@rollup/plugin-replace" "^2.4.2" + builtin-modules "^3.2.0" + cjs-module-lexer "^1.2.1" + es-module-lexer "^0.6.0" + execa "^5.1.1" + is-valid-identifier "^2.0.2" + kleur "^4.1.1" + mkdirp "^1.0.3" + picomatch "^2.3.0" + resolve "^1.20.0" + rimraf "^3.0.0" + rollup "~2.37.1" + rollup-plugin-polyfill-node "^0.6.2" + slash "~3.0.0" + validate-npm-package-name "^3.0.0" + vm2 "^3.9.2" + eslint-config-prettier@^8.3.0: version "8.3.0" resolved "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.3.0.tgz" @@ -9749,10 +9780,10 @@ smartwrap@^1.2.3: wcwidth "^1.0.1" yargs "^15.1.0" -snowpack@^3.8.1-pre.0: - version "3.8.1-pre.0" - resolved "https://registry.yarnpkg.com/snowpack/-/snowpack-3.8.1-pre.0.tgz#d886b81d4702cf722a8e8df5caa1653bfa00038d" - integrity sha512-0FPLHu4KpHzHptU6zwty1OvUASd7FNbQvpZ36BZqKnYQJDWERVZuerNNxcff/6wS6WSIxIUT7Rxxzhm/f+Llew== +snowpack@^3.8.1: + version "3.8.1" + resolved "https://registry.yarnpkg.com/snowpack/-/snowpack-3.8.1.tgz#374b066dfae4bbf4ba701aecf47ce7c02893a334" + integrity sha512-p2ohs1RzFM0e7X98tEzmD2KaQ2chpQMmk4ITWWl7nGZm5MQ7U1M8b+QseR6Md+GwrUrcuDFeTjy/GiqsvnzuFA== dependencies: "@npmcli/arborist" "^2.6.4" bufferutil "^4.0.2" @@ -9767,7 +9798,7 @@ snowpack@^3.8.1-pre.0: detect-port "^1.3.0" es-module-lexer "^0.3.24" esbuild "~0.9.0" - esinstall "^1.0.0" + esinstall "^1.1.7" estree-walker "^2.0.2" etag "^1.8.1" execa "^5.1.1"