summaryrefslogtreecommitdiff
path: root/examples/blog-multiple-authors/src/pages/$posts.astro
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/blog-multiple-authors/src/pages/$posts.astro
parent1b13f5c158b5fbe157406308205c0939b415e1d7 (diff)
downloadastro-3f14bed413074aba0ab9199d3a2e24802f51eb72.tar.gz
astro-3f14bed413074aba0ab9199d3a2e24802f51eb72.tar.zst
astro-3f14bed413074aba0ab9199d3a2e24802f51eb72.zip
Add lang attribute to html tags
Diffstat (limited to 'examples/blog-multiple-authors/src/pages/$posts.astro')
-rw-r--r--examples/blog-multiple-authors/src/pages/$posts.astro3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/blog-multiple-authors/src/pages/$posts.astro b/examples/blog-multiple-authors/src/pages/$posts.astro
index 0975e8007..c535b581d 100644
--- a/examples/blog-multiple-authors/src/pages/$posts.astro
+++ b/examples/blog-multiple-authors/src/pages/$posts.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';
@@ -38,7 +39,7 @@ export async function createCollection() {
}
---
-<html>
+<html lang={ lang ?? 'en' }>
<head>
<title>{title}</title>
<MainHead