[ci] format

This commit is contained in:
bholmesdev 2022-08-12 22:48:10 +00:00 committed by fredkbot
parent 5fe46d946a
commit d4b06f9d8e
2 changed files with 6 additions and 2 deletions

View file

@ -8,7 +8,9 @@ export interface Props {
const canonicalURL = new URL(Astro.url.pathname, Astro.site); const canonicalURL = new URL(Astro.url.pathname, Astro.site);
const { frontmatter = {} } = Astro.props; 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 imageSrc = frontmatter?.image?.src ?? OPEN_GRAPH.image.src;
const canonicalImageSrc = new URL(imageSrc, Astro.site); const canonicalImageSrc = new URL(imageSrc, Astro.site);
const imageAlt = frontmatter?.image?.alt ?? OPEN_GRAPH.image.alt; const imageAlt = frontmatter?.image?.alt ?? OPEN_GRAPH.image.alt;

View file

@ -18,7 +18,9 @@ const githubEditUrl = CONFIG.GITHUB_EDIT_URL && CONFIG.GITHUB_EDIT_URL + current
<head> <head>
<HeadCommon /> <HeadCommon />
<HeadSEO {frontmatter} canonicalURL={canonicalURL} /> <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> <style>
body { body {
width: 100%; width: 100%;