Skip to content

Commit

Permalink
fix(vite): append full meta
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Aug 15, 2022
1 parent e8d706e commit bc8bcb9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/vite/src/vitepress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ export function installSchemaOrg(ctx: EnhanceAppContext, meta: MetaInput) {
const client = createSchemaOrg({
meta() {
return {
path: ctx.router.route.path,
...ctx.siteData.value,
...ctx.router.route.data,
...ctx.router.route.data.frontmatter,
...meta,
}
},
Expand Down

0 comments on commit bc8bcb9

Please sign in to comment.