summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar ktym4a <shoma@ktym4a.me> 2024-04-01 15:06:08 +0700
committerGravatar GitHub <noreply@github.com> 2024-04-01 16:06:08 +0800
commit6d034733a8e96d57a7a34fb41f1f50cc0dc42e73 (patch)
tree9aca22ee92b7f34a9d939b7bf75f1be4f76a5ff0
parent046d69d517118ab5c0e71604b321729d66ddffff (diff)
downloadastro-6d034733a8e96d57a7a34fb41f1f50cc0dc42e73.tar.gz
astro-6d034733a8e96d57a7a34fb41f1f50cc0dc42e73.tar.zst
astro-6d034733a8e96d57a7a34fb41f1f50cc0dc42e73.zip
fix(starlog): Correct layout syntax. (#10627)
-rw-r--r--examples/starlog/src/components/BaseHead.astro1
-rw-r--r--examples/starlog/src/layouts/IndexLayout.astro13
2 files changed, 7 insertions, 7 deletions
diff --git a/examples/starlog/src/components/BaseHead.astro b/examples/starlog/src/components/BaseHead.astro
index e32945c1c..bb2c64ee8 100644
--- a/examples/starlog/src/components/BaseHead.astro
+++ b/examples/starlog/src/components/BaseHead.astro
@@ -7,6 +7,7 @@ export type Props = Partial<SEOProps>;
const { title = SiteTitle, name = SiteTitle, description = SiteDescription, ...seo } = Astro.props;
---
+<meta charset="utf-8" />
<SEO {title} {description} {name} {...seo} />
<link rel="preconnect" href="https://fonts.googleapis.com" />
diff --git a/examples/starlog/src/layouts/IndexLayout.astro b/examples/starlog/src/layouts/IndexLayout.astro
index 3f0bd0c96..117c57f0b 100644
--- a/examples/starlog/src/layouts/IndexLayout.astro
+++ b/examples/starlog/src/layouts/IndexLayout.astro
@@ -9,15 +9,14 @@ const { ...head } = Astro.props;
---
<!doctype html>
-<meta charset="utf-8" />
<html lang="en">
<head>
<BaseHead {...head} />
- <body>
- <div class="glow"></div>
- <Header />
- <slot />
- <Footer />
- </body>
</head>
+ <body>
+ <div class="glow"></div>
+ <Header />
+ <slot />
+ <Footer />
+ </body>
</html>