summaryrefslogtreecommitdiff
path: root/examples/snowpack/src
diff options
context:
space:
mode:
authorGravatar Shreesh Bhat <shreeshbhat@users.noreply.github.com> 2021-07-12 23:46:28 -0400
committerGravatar Shreesh Bhat <shreeshbhat@users.noreply.github.com> 2021-07-13 00:49:13 -0400
commit3f14bed413074aba0ab9199d3a2e24802f51eb72 (patch)
tree5460d384a66f5c428c8617eddb511e6f55adfb9e /examples/snowpack/src
parent1b13f5c158b5fbe157406308205c0939b415e1d7 (diff)
downloadastro-3f14bed413074aba0ab9199d3a2e24802f51eb72.tar.gz
astro-3f14bed413074aba0ab9199d3a2e24802f51eb72.tar.zst
astro-3f14bed413074aba0ab9199d3a2e24802f51eb72.zip
Add lang attribute to html tags
Diffstat (limited to 'examples/snowpack/src')
-rw-r--r--examples/snowpack/src/layouts/content-with-cover.astro2
-rw-r--r--examples/snowpack/src/layouts/content.astro2
-rw-r--r--examples/snowpack/src/layouts/post.astro2
-rw-r--r--examples/snowpack/src/pages/404.astro3
-rw-r--r--examples/snowpack/src/pages/guides.astro4
-rw-r--r--examples/snowpack/src/pages/index.astro3
-rw-r--r--examples/snowpack/src/pages/news.astro3
-rw-r--r--examples/snowpack/src/pages/plugins.astro3
-rw-r--r--examples/snowpack/src/pages/proof-of-concept-dynamic/[slug].astro.ignore3
9 files changed, 15 insertions, 10 deletions
diff --git a/examples/snowpack/src/layouts/content-with-cover.astro b/examples/snowpack/src/layouts/content-with-cover.astro
index ea2ecaf0e..ccc1f671b 100644
--- a/examples/snowpack/src/layouts/content-with-cover.astro
+++ b/examples/snowpack/src/layouts/content-with-cover.astro
@@ -8,7 +8,7 @@ const { content } = Astro.props;
---
<!doctype html>
-<html>
+<html lang={ content.lang ?? 'en' }>
<head>
<style>
diff --git a/examples/snowpack/src/layouts/content.astro b/examples/snowpack/src/layouts/content.astro
index 6c728db9d..a69f78f17 100644
--- a/examples/snowpack/src/layouts/content.astro
+++ b/examples/snowpack/src/layouts/content.astro
@@ -8,7 +8,7 @@ const { content } = Astro.props;
---
<!doctype html>
-<html>
+<html lang={ content.lang ?? 'en' }>
<head>
<BaseHead title={content.title} description={content.description} permalink="TODO" />
diff --git a/examples/snowpack/src/layouts/post.astro b/examples/snowpack/src/layouts/post.astro
index 7b0b614fe..0662b3f1b 100644
--- a/examples/snowpack/src/layouts/post.astro
+++ b/examples/snowpack/src/layouts/post.astro
@@ -7,7 +7,7 @@ const { content } = Astro.props;
---
<!doctype html>
-<html>
+<html lang={ content.lang ?? 'en' }>
<head>
<style lang="scss">
diff --git a/examples/snowpack/src/pages/404.astro b/examples/snowpack/src/pages/404.astro
index 053c931f4..ec3327ae4 100644
--- a/examples/snowpack/src/pages/404.astro
+++ b/examples/snowpack/src/pages/404.astro
@@ -4,10 +4,11 @@ import MainLayout from '../components/MainLayout.astro';
let title = 'Not Found';
let description = 'Snowpack is a lightning-fast frontend build tool, designed for the modern web.';
+let lang = 'en';
---
<!doctype html>
-<html>
+<html lang={ lang ?? 'en' }>
<head>
<BaseHead title={title} description={description} permalink="TODO" />
diff --git a/examples/snowpack/src/pages/guides.astro b/examples/snowpack/src/pages/guides.astro
index e02856ede..93cedddac 100644
--- a/examples/snowpack/src/pages/guides.astro
+++ b/examples/snowpack/src/pages/guides.astro
@@ -23,7 +23,7 @@ let title = 'Guides';
let description = 'Snowpack\'s usage and integration guides.';
let guides;
let communityGuides;
-
+let lang = 'en';
guides = paginate({
files: '/posts/guides/*.md',
@@ -41,7 +41,7 @@ let communityGuides;
---
<!doctype html>
-<html>
+<html lang={ lang ?? 'en' }>
<head>
<BaseHead title={title} description={description} permalink="TODO" />
diff --git a/examples/snowpack/src/pages/index.astro b/examples/snowpack/src/pages/index.astro
index f2a8f7f26..029692161 100644
--- a/examples/snowpack/src/pages/index.astro
+++ b/examples/snowpack/src/pages/index.astro
@@ -7,10 +7,11 @@ import BaseLayout from '../components/BaseLayout.astro';
let title = 'Snowpack';
let description = 'Snowpack is a lightning-fast frontend build tool, designed for the modern web.';
+let lang = 'en';
---
<!doctype html>
-<html>
+<html lang={ lang ?? 'en' }>
<head>
<style lang="scss">
@use '../../public/styles/var' as *;
diff --git a/examples/snowpack/src/pages/news.astro b/examples/snowpack/src/pages/news.astro
index f51631d28..a8b99678e 100644
--- a/examples/snowpack/src/pages/news.astro
+++ b/examples/snowpack/src/pages/news.astro
@@ -14,10 +14,11 @@ import users from '../data/users.json';
const title = 'Community & News';
const description = 'Snowpack community news and companies that use Snowpack.';
+let lang = 'en';
---
<!doctype html>
-<html>
+<html lang={ lang ?? 'en' }>
<head>
<BaseHead title={title} description={description} permalink="TODO" />
diff --git a/examples/snowpack/src/pages/plugins.astro b/examples/snowpack/src/pages/plugins.astro
index ce70f4cac..3ff13c115 100644
--- a/examples/snowpack/src/pages/plugins.astro
+++ b/examples/snowpack/src/pages/plugins.astro
@@ -5,10 +5,11 @@ import MainLayout from '../components/MainLayout.astro';
let title = 'The Snowpack Plugin Catalog';
let description = 'Snowpack plugins allow for configuration-minimal tooling integration.';
+let lang = 'en';
---
<!doctype html>
-<html>
+<html lang={ lang ?? 'en' }>
<head>
<BaseHead title={title} description={description} permalink="TODO" />
diff --git a/examples/snowpack/src/pages/proof-of-concept-dynamic/[slug].astro.ignore b/examples/snowpack/src/pages/proof-of-concept-dynamic/[slug].astro.ignore
index 2b05bcf66..726f15642 100644
--- a/examples/snowpack/src/pages/proof-of-concept-dynamic/[slug].astro.ignore
+++ b/examples/snowpack/src/pages/proof-of-concept-dynamic/[slug].astro.ignore
@@ -8,6 +8,7 @@ import BaseLayout from '../components/BaseLayout.astro';
let title = 'Community & News';
let description = 'Snowpack community news and companies that use Snowpack.';
let entry;
+let lang = 'en';
export default async function ({ params }) {
entry = await contentful.getEntry(params.slug);
@@ -15,7 +16,7 @@ export default async function ({ params }) {
}
---
-<html>
+<html lang={ lang ?? 'en' }>
<head>
<BaseHead title={title} description={description} permalink="TODO" />