게시물 가져오기 대표 이미지 표시값 보정

This commit is contained in:
2026-07-23 17:49:29 +09:00
parent 7dc1ecef4d
commit 39e05a1038
6 changed files with 11 additions and 4 deletions

View File

@@ -195,6 +195,7 @@ const createPostFrontmatter = (post, assets) => {
`updated_at: ${quoteYamlValue(post.updated_at.toISOString())}`,
`excerpt: ${quoteYamlValue(post.excerpt || '')}`,
`featured_image: ${assets.featuredImage ? quoteYamlValue(assets.featuredImage) : 'null'}`,
`show_featured_image: ${post.show_featured_image ? 'true' : 'false'}`,
`seo_title: ${quoteYamlValue(post.seo_title || '')}`,
`seo_description: ${quoteYamlValue(post.seo_description || '')}`,
`canonical_url: ${quoteYamlValue(post.canonical_url || '')}`,

View File

@@ -616,6 +616,7 @@ export const importPostsFromExportZip = async ({ zipFilePath, authorId }) => {
content: replaceAssetPaths(content, replacements),
excerpt: String(frontmatter.excerpt || ''),
featuredImage,
showFeaturedImage: Boolean(frontmatter.show_featured_image),
isFeatured: false,
seoTitle: String(frontmatter.seo_title || ''),
seoDescription: String(frontmatter.seo_description || ''),