Jacky Zhao
2023-07-07 05d1ca01c39e18fa08776d4800e201abf8779f3c
handle string tags
2 files modified
6 ■■■■ changed files
content/showcase.md 2 ●●● patch | view | raw | blame | history
quartz/plugins/transformers/frontmatter.ts 4 ●●●● patch | view | raw | blame | history
content/showcase.md
@@ -16,4 +16,4 @@
- [Abhijeet's Math Wiki](https://abhmul.github.io/quartz/Math-Wiki/)
- [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)!
quartz/plugins/transformers/frontmatter.ts
@@ -23,6 +23,10 @@
          return (_, file) => {
            const { data } = matter(file.value, opts)
            if (typeof data.tags === 'string') {
              data.tags = data.tags.split(" ")
            }
            // fill in frontmatter
            file.data.frontmatter = {
              title: file.stem ?? "Untitled",