mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-17 12:01:33 +02:00
update: migrate from content.ts to content.config.ts
This commit is contained in:
parent
9cfd0cb049
commit
4c8dff619e
10 changed files with 302 additions and 329 deletions
|
@ -70,5 +70,5 @@ export function generateDescription(
|
|||
return post.data.description
|
||||
|
||||
const lang = (!post.data.lang || post.data.lang === '') ? defaultLocale : post.data.lang
|
||||
return generateExcerpt(post.body, scene, lang)
|
||||
return generateExcerpt(post.body || '', scene, lang)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue