관리자 통계 제외와 콘텐츠 링크 정리
This commit is contained in:
@@ -35,6 +35,7 @@ const tagPosts = computed(() => posts.value
|
||||
featuredImage: post.featuredImage,
|
||||
featuredImageThumbnail: post.featuredImageThumbnail || '',
|
||||
tag: primaryTag?.name || primaryTagSlug.toUpperCase(),
|
||||
tagSlug: primaryTagSlug,
|
||||
tagColor: primaryTag?.color || '#4d4d4d',
|
||||
isFeatured: Boolean(post.isFeatured),
|
||||
commentCount: Number(post.commentCount || 0),
|
||||
@@ -105,12 +106,13 @@ const tagPosts = computed(() => posts.value
|
||||
<div class="flex flex-wrap items-center gap-2 text-xs site-muted sm:gap-1.5">
|
||||
<time v-if="post.publishedAt" :datetime="post.publishedAtIso">{{ post.publishedAt }}</time>
|
||||
<span class="text-[var(--site-line)]">/</span>
|
||||
<span
|
||||
<NuxtLink
|
||||
class="rounded-md px-1.5 py-px font-medium text-[var(--site-text)]"
|
||||
:style="{ backgroundColor: `${post.tagColor}1a` }"
|
||||
:to="`/tag/${post.tagSlug}`"
|
||||
>
|
||||
{{ post.tag }}
|
||||
</span>
|
||||
</NuxtLink>
|
||||
<span class="text-[var(--site-line)]">/</span>
|
||||
<span class="flex items-center gap-0.75">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="-mt-px">
|
||||
@@ -120,10 +122,10 @@ const tagPosts = computed(() => posts.value
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<button
|
||||
<NuxtLink
|
||||
class="absolute top-0 right-0 flex cursor-pointer items-center gap-1 hover:opacity-75 md:top-auto md:right-0 md:bottom-0 md:invisible md:opacity-0 md:transition-[opacity,visibility] md:duration-200 md:group-hover:visible md:group-hover:opacity-100"
|
||||
type="button"
|
||||
aria-label="Share this post"
|
||||
:to="post.to"
|
||||
aria-label="게시물 보기"
|
||||
>
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
@@ -138,7 +140,7 @@ const tagPosts = computed(() => posts.value
|
||||
<path d="M17 7 7 17" />
|
||||
<path d="M8 7h9v9" />
|
||||
</svg>
|
||||
</button>
|
||||
</NuxtLink>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
Reference in New Issue
Block a user