fix: tag support for non-latin alphabets (fixes #398)
This commit is contained in:
1 parent
b991cf2ee8
commit
8b63ff882a
3 files changed
+7
-6
No files matched your search
@@ -41,7 +41,7 @@ export const FrontMatter: QuartzTransformerPlugin<Partial<Options> | undefined>
|
||||
}
|
||||
|
||||
// slug them all!!
|
||||
data.tags = data.tags?.map((tag: string) => slugTag(tag)) ?? []
|
||||
data.tags = [...new Set(data.tags?.map((tag: string) => slugTag(tag)))] ?? []
|
||||
|
||||
// fill in frontmatter
|
||||
file.data.frontmatter = {
|
||||
|
||||
Reference in new issue
Block a user