examples: Blog template changes (#4577)

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
This commit is contained in:
Daren Chandisingh 2022-09-03 15:58:00 +01:00 committed by GitHub
parent 7114aee208
commit 1bee84920a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 7 deletions

View file

@ -18,7 +18,7 @@ const {
} = Astro.props; } = Astro.props;
--- ---
<html> <html lang="en">
<head> <head>
<BaseHead title={title} description={description} /> <BaseHead title={title} description={description} />
<style> <style>

View file

@ -11,7 +11,7 @@ const posts = (await Astro.glob('./blog/*.{md,mdx}')).sort(
--- ---
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en-us"> <html lang="en">
<head> <head>
<BaseHead title={SITE_TITLE} description={SITE_DESCRIPTION} /> <BaseHead title={SITE_TITLE} description={SITE_DESCRIPTION} />
<style> <style>
@ -51,7 +51,7 @@ const posts = (await Astro.glob('./blog/*.{md,mdx}')).sort(
))} ))}
</ul> </ul>
</section> </section>
<Footer />
</main> </main>
<Footer />
</body> </body>
</html> </html>

View file

@ -6,7 +6,7 @@ import { SITE_TITLE, SITE_DESCRIPTION } from '../config';
--- ---
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en-us"> <html lang="en">
<head> <head>
<BaseHead title={SITE_TITLE} description={SITE_DESCRIPTION} /> <BaseHead title={SITE_TITLE} description={SITE_DESCRIPTION} />
</head> </head>

View file

@ -14,7 +14,7 @@ const user = { name: 'test' }; // getUser?
const cart = await getCart(Astro.request); const cart = await getCart(Astro.request);
--- ---
<html> <html lang="en">
<head> <head>
<title>Cart | Online Store</title> <title>Cart | Online Store</title>
<style> <style>

View file

@ -8,7 +8,7 @@ import '../styles/common.css';
const products = await getProducts(Astro.request); const products = await getProducts(Astro.request);
--- ---
<html> <html lang="en">
<head> <head>
<title>Online Store</title> <title>Online Store</title>
<style> <style>

View file

@ -3,7 +3,7 @@ import Header from '../components/Header.astro';
import Container from '../components/Container.astro'; import Container from '../components/Container.astro';
--- ---
<html> <html lang="en">
<head> <head>
<title>Online Store</title> <title>Online Store</title>
<style> <style>