fix: coerce title to string
This commit is contained in:
parent
2443791d33
commit
37d59b994e
@ -37,6 +37,11 @@ export const FrontMatter: QuartzTransformerPlugin<Partial<Options> | undefined>
|
|||||||
data.tags = data.tag
|
data.tags = data.tag
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// coerce title to string
|
||||||
|
if (data.title) {
|
||||||
|
data.title = data.title.toString()
|
||||||
|
}
|
||||||
|
|
||||||
if (data.tags && !Array.isArray(data.tags)) {
|
if (data.tags && !Array.isArray(data.tags)) {
|
||||||
data.tags = data.tags
|
data.tags = data.tags
|
||||||
.toString()
|
.toString()
|
||||||
|
Loading…
Reference in New Issue
Block a user