diff --git a/src/components/blog/Tags.astro b/src/components/blog/Tags.astro index 122cd91..b00b108 100644 --- a/src/components/blog/Tags.astro +++ b/src/components/blog/Tags.astro @@ -6,29 +6,36 @@ import type { Post } from '~/types'; export interface Props { tags: Post['tags']; - class?: string; + class?: string; + title?: string | undefined; + isCategory?: boolean; } -const { tags, class: className = 'text-sm' } = Astro.props; +const { tags, class: className = 'text-sm', title = undefined, isCategory = false } = Astro.props; --- { tags && Array.isArray(tags) && ( - + <> + <> + {title !== undefined && {title}} + + + ) }