fix: do not interpolate tag titles
fixes duplicate stories
This commit is contained in:
parent
8474f4ff81
commit
16eab9d7d8
@ -15,7 +15,7 @@ const docs = await queryContent<BlogParsedContent>("/blog")
|
|||||||
.where({ _draft: false, tags: { $contains: tag } })
|
.where({ _draft: false, tags: { $contains: tag } })
|
||||||
.find();
|
.find();
|
||||||
|
|
||||||
const title = `${details.name ?? `"${tag}"`} Posts`;
|
const title = details.name ?? `"${tag}"`;
|
||||||
useTitle(title, details.description);
|
useTitle(title, details.description);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ useTitle(title, details.description);
|
|||||||
class="prose dark:prose-invert max-w-3xl flex flex-col grow gap-6 transition"
|
class="prose dark:prose-invert max-w-3xl flex flex-col grow gap-6 transition"
|
||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
<h1 class="mb-0">{{ title }}</h1>
|
<h1 class="mb-0">{{ title }} Posts</h1>
|
||||||
<p
|
<p
|
||||||
v-if="details.description"
|
v-if="details.description"
|
||||||
v-html="details.description"
|
v-html="details.description"
|
||||||
|
@ -15,7 +15,7 @@ const docs = await queryContent<StoryParsedContent>("/stories")
|
|||||||
.where({ _draft: false, tags: { $contains: tag } })
|
.where({ _draft: false, tags: { $contains: tag } })
|
||||||
.find();
|
.find();
|
||||||
|
|
||||||
const title = `${details.name ?? `"${tag}"`} Stories`;
|
const title = details.name ?? `"${tag}"`;
|
||||||
useTitle(title, details.description);
|
useTitle(title, details.description);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user