diff --git a/src/layouts/PostDetails.astro b/src/layouts/PostDetails.astro index e1d8971..9a63df0 100644 --- a/src/layouts/PostDetails.astro +++ b/src/layouts/PostDetails.astro @@ -13,8 +13,7 @@ export interface Props { const { post } = Astro.props; -let { title, author, description, ogImage, pubDatetime, tags } = post.data; -tags = tags.map(tag => slugifyStr(tag)); +const { title, author, description, ogImage, pubDatetime, tags } = post.data; const { Content } = await post.render(); @@ -44,7 +43,7 @@ const ogUrl = new URL(ogImage ? ogImage : `${title}.png`, Astro.url.origin)