From 16eab9d7d865ba78920cdc96595869db42d79a44 Mon Sep 17 00:00:00 2001 From: eggy Date: Mon, 15 Aug 2022 21:03:46 -0400 Subject: [PATCH] fix: do not interpolate tag titles fixes duplicate stories --- pages/tags/blog/[tag].vue | 4 ++-- pages/tags/stories/[tag].vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/tags/blog/[tag].vue b/pages/tags/blog/[tag].vue index ffba485..901fe56 100644 --- a/pages/tags/blog/[tag].vue +++ b/pages/tags/blog/[tag].vue @@ -15,7 +15,7 @@ const docs = await queryContent("/blog") .where({ _draft: false, tags: { $contains: tag } }) .find(); -const title = `${details.name ?? `"${tag}"`} Posts`; +const title = details.name ?? `"${tag}"`; useTitle(title, details.description); @@ -24,7 +24,7 @@ useTitle(title, details.description); class="prose dark:prose-invert max-w-3xl flex flex-col grow gap-6 transition" >
-

{{ title }}

+

{{ title }} Posts

("/stories") .where({ _draft: false, tags: { $contains: tag } }) .find(); -const title = `${details.name ?? `"${tag}"`} Stories`; +const title = details.name ?? `"${tag}"`; useTitle(title, details.description);