diff --git a/docs/notes/theme/config/frontmatter/basic.md b/docs/notes/theme/config/frontmatter/basic.md index d14ba7aa..db01ecf7 100644 --- a/docs/notes/theme/config/frontmatter/basic.md +++ b/docs/notes/theme/config/frontmatter/basic.md @@ -99,6 +99,14 @@ permalink: /config/frontmatter/basic/ 当前文章是否 显示 回到顶部 的按钮。 +### signDown + +- 类型: `boolean` +- 默认值: `false` +- 详情: + + 当前文章是否 显示 向下前头 的标志。 + ### comments - 类型: `boolean` diff --git a/theme/src/client/components/VPSignDown.vue b/theme/src/client/components/VPSignDown.vue new file mode 100644 index 00000000..49414891 --- /dev/null +++ b/theme/src/client/components/VPSignDown.vue @@ -0,0 +1,86 @@ + + + + + diff --git a/theme/src/client/layouts/Layout.vue b/theme/src/client/layouts/Layout.vue index dfd8ce1a..e886fe23 100644 --- a/theme/src/client/layouts/Layout.vue +++ b/theme/src/client/layouts/Layout.vue @@ -8,6 +8,7 @@ import VPEncryptGlobal from '@theme/VPEncryptGlobal.vue' import VPFooter from '@theme/VPFooter.vue' import VPLocalNav from '@theme/VPLocalNav.vue' import VPSidebar from '@theme/VPSidebar.vue' +import VPSignDown from '@theme/VPSignDown.vue' import VPSkipLink from '@theme/VPSkipLink.vue' import { watch } from 'vue' import { useRoute } from 'vuepress/client' @@ -199,6 +200,7 @@ useCloseSidebarOnEscape(isSidebarOpen, closeSidebar) +