handle string tags
This commit is contained in:
parent
a80ddd0de8
commit
d3a52331ac
@ -16,4 +16,4 @@ Want to see what Quartz can do? Here are some cool community gardens :)
|
|||||||
- [Abhijeet's Math Wiki](https://abhmul.github.io/quartz/Math-Wiki/)
|
- [Abhijeet's Math Wiki](https://abhmul.github.io/quartz/Math-Wiki/)
|
||||||
- [Mike's AI Garden 🤖🪴](https://mwalton.me/)
|
- [Mike's AI Garden 🤖🪴](https://mwalton.me/)
|
||||||
|
|
||||||
If you want to see your own on here, submit a [Pull Request adding yourself to this file](https://github.com/jackyzha0/quartz/blob/v4-alpha/content/showcase.md)!
|
If you want to see your own on here, submit a [Pull Request adding yourself to this file](https://github.com/jackyzha0/quartz/blob/v4-alpha/content/showcase.md)!
|
||||||
|
@ -23,6 +23,10 @@ export const FrontMatter: QuartzTransformerPlugin<Partial<Options> | undefined>
|
|||||||
return (_, file) => {
|
return (_, file) => {
|
||||||
const { data } = matter(file.value, opts)
|
const { data } = matter(file.value, opts)
|
||||||
|
|
||||||
|
if (typeof data.tags === 'string') {
|
||||||
|
data.tags = data.tags.split(" ")
|
||||||
|
}
|
||||||
|
|
||||||
// fill in frontmatter
|
// fill in frontmatter
|
||||||
file.data.frontmatter = {
|
file.data.frontmatter = {
|
||||||
title: file.stem ?? "Untitled",
|
title: file.stem ?? "Untitled",
|
||||||
|
Loading…
Reference in New Issue
Block a user