게시물 목록 카드 썸네일 생성 추가
This commit is contained in:
@@ -21,6 +21,7 @@ const tagPosts = computed(() => posts.value
|
||||
appendEllipsis: false
|
||||
}),
|
||||
featuredImage: post.featuredImage,
|
||||
featuredImageThumbnail: post.featuredImageThumbnail || '',
|
||||
tag: tags.value.find((item) => item.slug === (post.tags?.[0] || slug.value))?.name || (post.tags?.[0] || slug.value).toUpperCase(),
|
||||
tagColor: tags.value.find((item) => item.slug === (post.tags?.[0] || slug.value))?.color || '#4d4d4d',
|
||||
isFeatured: Boolean(post.isFeatured),
|
||||
@@ -59,6 +60,7 @@ const tagPosts = computed(() => posts.value
|
||||
:to="post.to"
|
||||
:title="post.title"
|
||||
:featured-image="post.featuredImage"
|
||||
:thumbnail-image="post.featuredImageThumbnail"
|
||||
link-class="relative aspect-square min-w-16 flex-1 sm:aspect-video"
|
||||
aspect-class="aspect-square w-full sm:aspect-video"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user