summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/docs/src/components/HeadSEO.astro4
-rw-r--r--examples/docs/src/layouts/MainLayout.astro4
2 files changed, 6 insertions, 2 deletions
diff --git a/examples/docs/src/components/HeadSEO.astro b/examples/docs/src/components/HeadSEO.astro
index 298c17073..75d17bea1 100644
--- a/examples/docs/src/components/HeadSEO.astro
+++ b/examples/docs/src/components/HeadSEO.astro
@@ -8,7 +8,9 @@ export interface Props {
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
const { frontmatter = {} } = Astro.props;
-const formattedContentTitle = frontmatter.title ? `${frontmatter.title} 🚀 ${SITE.title}` : SITE.title;
+const formattedContentTitle = frontmatter.title
+ ? `${frontmatter.title} 🚀 ${SITE.title}`
+ : SITE.title;
const imageSrc = frontmatter?.image?.src ?? OPEN_GRAPH.image.src;
const canonicalImageSrc = new URL(imageSrc, Astro.site);
const imageAlt = frontmatter?.image?.alt ?? OPEN_GRAPH.image.alt;
diff --git a/examples/docs/src/layouts/MainLayout.astro b/examples/docs/src/layouts/MainLayout.astro
index 2554a416c..5b35aee18 100644
--- a/examples/docs/src/layouts/MainLayout.astro
+++ b/examples/docs/src/layouts/MainLayout.astro
@@ -18,7 +18,9 @@ const githubEditUrl = CONFIG.GITHUB_EDIT_URL && CONFIG.GITHUB_EDIT_URL + current
<head>
<HeadCommon />
<HeadSEO {frontmatter} canonicalURL={canonicalURL} />
- <title>{frontmatter.title ? `${frontmatter.title} 🚀 ${CONFIG.SITE.title}` : CONFIG.SITE.title}</title>
+ <title>
+ {frontmatter.title ? `${frontmatter.title} 🚀 ${CONFIG.SITE.title}` : CONFIG.SITE.title}
+ </title>
<style>
body {
width: 100%;