[ci] format
This commit is contained in:
parent
5fe46d946a
commit
d4b06f9d8e
2 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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%;
|
||||
|
|
Loading…
Reference in a new issue