게시물 가져오기 대표 이미지 표시값 보정
This commit is contained in:
@@ -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 || '')}`,
|
||||
|
||||
@@ -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 || ''),
|
||||
|
||||
Reference in New Issue
Block a user