diff --git a/docs/.vitepress/theme/components/CopyrightInfo.vue b/docs/.vitepress/theme/components/CopyrightInfo.vue index d1081ba..d9447fd 100644 --- a/docs/.vitepress/theme/components/CopyrightInfo.vue +++ b/docs/.vitepress/theme/components/CopyrightInfo.vue @@ -25,7 +25,7 @@ function searchClosestInTrie( } const paths = useData() - .page.value.relativePath.split('/') + .page.value.relativePath.replace('.md', '').split('/') .filter((item: string) => item !== ''); const attrs = searchClosestInTrie(data, paths); const frontmatter = useData().frontmatter.value;