fix comments

This commit is contained in:
polv committed 2021-04-18 09:50:25 +07:00
1 parent a311ef72d3
commit 8960aa88bd
4 files changed
+9 -8

No files matched your search

+3 -2
View File
@@ -47,8 +47,9 @@ export const zTheme = z
remark42: z
.object({
host: z.string(),
siteId: z.string()
site_id: z.string()
})
.nonstrict()
.optional()
})
.optional()
@@ -59,6 +60,6 @@ export type ITheme = z.infer<typeof zTheme>
export function getTheme () {
return zTheme.parse(
yaml.safeLoad(fs.readFileSync(buildPath(THEME_FILENAME), 'utf-8'))
yaml.load(fs.readFileSync(buildPath(THEME_FILENAME), 'utf-8'))
)
}