mirror of
https://github.com/fmhy/edit.git
synced 2025-07-30 07:42:18 +10:00
[skip-ci] chore: format
This commit is contained in:
parent
7d8ea01dc0
commit
586b45ffa6
3 changed files with 15 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue