fix comments
This commit is contained in:
1 parent
a311ef72d3
commit
8960aa88bd
4 files changed
+9
-8
No files matched your search
@@ -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'))
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user