diff --git a/src/utils/getUniqueTags.ts b/src/utils/getUniqueTags.ts index 4e62cfb..f8f9ad7 100644 --- a/src/utils/getUniqueTags.ts +++ b/src/utils/getUniqueTags.ts @@ -1,4 +1,4 @@ -import slugify from "./slugify"; +import { slugifyStr } from "./slugify"; import type { MarkdownInstance } from "astro"; import type { Frontmatter } from "../types"; @@ -7,7 +7,7 @@ const getUniqueTags = (posts: MarkdownInstance[]) => { const filteredPosts = posts.filter(({ frontmatter }) => !frontmatter.draft); filteredPosts.forEach((post) => { tags = [...tags, ...post.frontmatter.tags] - .map((tag) => slugify(tag)) + .map((tag) => slugifyStr(tag)) .filter( (value: string, index: number, self: string[]) => self.indexOf(value) === index