mirror of
https://github.com/fmhy/edit.git
synced 2026-01-18 01:41:52 +11:00
fix(api): return as text/plain
This commit is contained in:
parent
2d746a86de
commit
e60e05270c
5 changed files with 21 additions and 15 deletions
|
|
@ -74,11 +74,11 @@ async function generateImage({
|
|||
props: {
|
||||
title:
|
||||
frontmatter.layout === 'home'
|
||||
? frontmatter.hero.name ?? frontmatter.title
|
||||
? (frontmatter.hero.name ?? frontmatter.title)
|
||||
: frontmatter.title,
|
||||
description:
|
||||
frontmatter.layout === 'home'
|
||||
? frontmatter.hero.tagline ?? frontmatter.description
|
||||
? (frontmatter.hero.tagline ?? frontmatter.description)
|
||||
: frontmatter.description
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue