diff --git a/.changeset/lovely-kids-sniff.md b/.changeset/lovely-kids-sniff.md new file mode 100644 index 000000000..23c585acc --- /dev/null +++ b/.changeset/lovely-kids-sniff.md @@ -0,0 +1,17 @@ +--- +'@example/blog': minor +'@example/blog-multiple-authors': minor +'@example/docs': minor +'@example/framework-multiple': minor +'@example/framework-preact': minor +'@example/framework-react': minor +'@example/framework-svelte': minor +'@example/framework-vue': minor +'@example/portfolio': minor +'@example/snowpack': minor +'@example/with-markdown': minor +'@example/with-markdown-plugins': minor +'@example/with-tailwindcss': minor +--- + +Add lang attribute to html tags diff --git a/examples/blog-multiple-authors/src/layouts/post.astro b/examples/blog-multiple-authors/src/layouts/post.astro index c8f394892..b34275d84 100644 --- a/examples/blog-multiple-authors/src/layouts/post.astro +++ b/examples/blog-multiple-authors/src/layouts/post.astro @@ -6,7 +6,7 @@ import authorData from '../data/authors.json'; const { content } = Astro.props; --- - + {content.title} diff --git a/examples/blog-multiple-authors/src/pages/$author.astro b/examples/blog-multiple-authors/src/pages/$author.astro index ff80344e4..bcd9d76af 100644 --- a/examples/blog-multiple-authors/src/pages/$author.astro +++ b/examples/blog-multiple-authors/src/pages/$author.astro @@ -8,6 +8,7 @@ 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'; @@ -45,7 +46,7 @@ export async function createCollection() { const author = authorData[collection.params.author]; --- - + {title} + {title} + + {title} + diff --git a/examples/blog/src/pages/index.astro b/examples/blog/src/pages/index.astro index 13b28d9db..3c9fdd5a0 100644 --- a/examples/blog/src/pages/index.astro +++ b/examples/blog/src/pages/index.astro @@ -11,6 +11,7 @@ import BlogPostPreview from '../components/BlogPostPreview.astro'; let title = 'Example Blog'; let description = 'The perfect starter for your perfect blog.'; let permalink = 'https://example.com/'; +let lang = 'en'; // Data Fetching: List all Markdown posts in the repo. let allPosts = Astro.fetchContent('./posts/*.md'); @@ -19,7 +20,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 --- - + diff --git a/examples/docs/src/layouts/Main.astro b/examples/docs/src/layouts/Main.astro index dbfc90791..fe847496e 100644 --- a/examples/docs/src/layouts/Main.astro +++ b/examples/docs/src/layouts/Main.astro @@ -18,7 +18,7 @@ const githubEditUrl = `https://github.com/USER/REPO/blob/main/${currentFile}` // Full Astro Component Syntax: // https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md --- - + {content.title} diff --git a/examples/framework-multiple/src/pages/index.astro b/examples/framework-multiple/src/pages/index.astro index 826a9d5f9..0b6a8ad6d 100644 --- a/examples/framework-multiple/src/pages/index.astro +++ b/examples/framework-multiple/src/pages/index.astro @@ -6,10 +6,12 @@ import { PreactCounter } from '../components/PreactCounter.tsx'; import VueCounter from '../components/VueCounter.vue'; import SvelteCounter from '../components/SvelteCounter.svelte'; +let lang = 'en'; + // Full Astro Component Syntax: // https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md --- - + diff --git a/examples/framework-preact/src/pages/index.astro b/examples/framework-preact/src/pages/index.astro index c370d7298..513c43b43 100644 --- a/examples/framework-preact/src/pages/index.astro +++ b/examples/framework-preact/src/pages/index.astro @@ -2,10 +2,12 @@ // Component Imports import Counter from '../components/Counter.jsx' +let lang = 'en'; + // Full Astro Component Syntax: // https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md --- - + + + + +