Add lang
attribute to pages on https://astro.build (#668)
This commit is contained in:
parent
7583a8b42a
commit
1b13f5c158
6 changed files with 46 additions and 11 deletions
|
@ -8,7 +8,7 @@ const { content } = Astro.props;
|
|||
const headers = content?.astro?.headers;
|
||||
---
|
||||
|
||||
<html>
|
||||
<html lang={ content?.lang ?? 'en' }>
|
||||
<head>
|
||||
<title>{content?.title}</title>
|
||||
|
||||
|
|
|
@ -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" />
|
||||
|
|
|
@ -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" />
|
||||
|
|
|
@ -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" />
|
||||
|
|
|
@ -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" />
|
||||
|
|
43
yarn.lock
43
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"
|
||||
|
|
Loading…
Reference in a new issue