[skip-ci] chore: format

This commit is contained in:
taskylizard 2024-08-08 15:08:55 +00:00
parent 7d8ea01dc0
commit 586b45ffa6
No known key found for this signature in database
GPG key ID: 1820131ED1A24120
3 changed files with 15 additions and 6 deletions

View file

@ -71,14 +71,14 @@ async function generateImage({
const _page = getPage(url)
const title =
frontmatter.layout === 'home'
? frontmatter.hero.name ?? frontmatter.title
? (frontmatter.hero.name ?? frontmatter.title)
: frontmatter.title
? frontmatter.title
: _page?.title
const description =
frontmatter.layout === 'home'
? frontmatter.hero.tagline ?? frontmatter.description
? (frontmatter.hero.tagline ?? frontmatter.description)
: frontmatter.description
? frontmatter.description
: _page?.description