summaryrefslogtreecommitdiff
path: root/examples/blog-multiple-authors
diff options
context:
space:
mode:
Diffstat (limited to 'examples/blog-multiple-authors')
-rw-r--r--examples/blog-multiple-authors/src/pages/$author.astro3
-rw-r--r--examples/blog-multiple-authors/src/pages/$posts.astro3
-rw-r--r--examples/blog-multiple-authors/src/pages/about.astro3
-rw-r--r--examples/blog-multiple-authors/src/pages/index.astro3
4 files changed, 4 insertions, 8 deletions
diff --git a/examples/blog-multiple-authors/src/pages/$author.astro b/examples/blog-multiple-authors/src/pages/$author.astro
index bcd9d76af..e0a6a1919 100644
--- a/examples/blog-multiple-authors/src/pages/$author.astro
+++ b/examples/blog-multiple-authors/src/pages/$author.astro
@@ -8,7 +8,6 @@ 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';
@@ -46,7 +45,7 @@ export async function createCollection() {
const author = authorData[collection.params.author];
---
-<html lang={ lang ?? 'en' }>
+<html lang="en">
<head>
<title>{title}</title>
<MainHead
diff --git a/examples/blog-multiple-authors/src/pages/$posts.astro b/examples/blog-multiple-authors/src/pages/$posts.astro
index c535b581d..a31004c05 100644
--- a/examples/blog-multiple-authors/src/pages/$posts.astro
+++ b/examples/blog-multiple-authors/src/pages/$posts.astro
@@ -8,7 +8,6 @@ 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';
@@ -39,7 +38,7 @@ export async function createCollection() {
}
---
-<html lang={ lang ?? 'en' }>
+<html lang="en">
<head>
<title>{title}</title>
<MainHead
diff --git a/examples/blog-multiple-authors/src/pages/about.astro b/examples/blog-multiple-authors/src/pages/about.astro
index 17035a88e..44a9424cf 100644
--- a/examples/blog-multiple-authors/src/pages/about.astro
+++ b/examples/blog-multiple-authors/src/pages/about.astro
@@ -3,9 +3,8 @@ import MainHead from '../components/MainHead.astro';
import Nav from '../components/Nav.astro';
let title = "About";
-let lang = 'en';
---
-<html lang={ lang ?? 'en' }>
+<html lang="en">
<head>
<MainHead
title={title}
diff --git a/examples/blog-multiple-authors/src/pages/index.astro b/examples/blog-multiple-authors/src/pages/index.astro
index 400d04292..f8728f542 100644
--- a/examples/blog-multiple-authors/src/pages/index.astro
+++ b/examples/blog-multiple-authors/src/pages/index.astro
@@ -12,7 +12,6 @@ import authorData from '../data/authors.json';
// All variables are available to use in the HTML template below.
let title = 'Don’s Blog';
let description = 'An example blog on Astro';
-let lang = 'en';
// Data Fetching: List all Markdown posts in the repo.
let allPosts = Astro.fetchContent('./post/*.md');
@@ -22,7 +21,7 @@ let firstPage = allPosts.slice(0, 2);
// Full Astro Component Syntax:
// https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md
---
-<html lang={ lang ?? 'en' }>
+<html lang="en">
<head>
<title>{title}</title>
<MainHead