Skip to content

Commit 0fde296

Browse files
committed
main 🧊 change seo
1 parent 6cf05ca commit 0fde296

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎packages/docs/app/.vitepress/config.mts‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,12 @@ export default async () => {
5757
}
5858
]);
5959

60-
if (pageData.relativePath.includes('hooks')) {
61-
pageData.title = pageData.params?.name;
60+
if (pageData.relativePath.includes('hooks') && pageData.params?.name) {
61+
const name = pageData.params.name as string;
62+
const description = (pageData.params.description as string) ?? '';
63+
64+
pageData.title = `${name} React hook Reactuse siberiacancode`;
65+
pageData.description = description;
6266
}
6367
},
6468
head: [

0 commit comments

Comments
 (0)