mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-25 08:06:51 +00:00
Close #236 add tag generators
This commit is contained in:
@@ -129,7 +129,8 @@ export function getFilePath(file: ProjectFile) {
|
||||
}
|
||||
const gen = config.generators.find(g => g.id === file.type)
|
||||
if (!gen) {
|
||||
throw new Error(`Cannot find generator of type ${file.type}`)
|
||||
console.error(`Cannot find generator of type ${file.type}`)
|
||||
return undefined
|
||||
}
|
||||
return `data/${namespace}/${gen.path ?? gen.id}/${id}`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user