summaryrefslogtreecommitdiff
path: root/examples/docs/src
diff options
context:
space:
mode:
authorGravatar bholmesdev <bholmesdev@users.noreply.github.com> 2022-08-12 22:48:10 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2022-08-12 22:48:10 +0000
commitd4b06f9d8e5d62893743b191c6bd108fc33b7805 (patch)
treeaadaacf1e36b0246db5e53df93307ef66ca98aad /examples/docs/src
parent5fe46d946ad2e0ab52302e92279b5e0abd6910d4 (diff)
downloadastro-d4b06f9d8e5d62893743b191c6bd108fc33b7805.tar.gz
astro-d4b06f9d8e5d62893743b191c6bd108fc33b7805.tar.zst
astro-d4b06f9d8e5d62893743b191c6bd108fc33b7805.zip
[ci] format
Diffstat (limited to 'examples/docs/src')
-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%;