Skip to content

Commit

Permalink
fix: page frontmatter (#2130)
Browse files Browse the repository at this point in the history
  • Loading branch information
andybuibui committed May 30, 2024
1 parent ea40793 commit 82d876b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/theme-api/useRouteMeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function getCachedRouteMeta(route: IRoutesById[string]) {
Object.keys(route.meta).forEach((key) => {
(meta as any)[key] ??= (route.meta as any)[key];
});
meta.frontmatter = deepmerge(meta.frontmatter, route.meta.frontmatter);
meta.frontmatter = deepmerge(meta.frontmatter, route.meta.frontmatter, { arrayMerge: (_destinationArray, sourceArray) => sourceArray });
}
return meta;
};
Expand Down

0 comments on commit 82d876b

Please sign in to comment.