fix(api): return as text/plain

This commit is contained in:
taskylizard 2024-07-31 16:48:06 +00:00
parent 2d746a86de
commit e60e05270c
No known key found for this signature in database
GPG key ID: 1820131ED1A24120
5 changed files with 21 additions and 15 deletions

View file

@ -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
}
}