重构:再次扩展默认主题的页脚配置,后续可提供更多的扩展性
This commit is contained in:
@@ -3,14 +3,20 @@
|
||||
<template #doc-after>
|
||||
<Comment />
|
||||
</template>
|
||||
<template #layout-bottom>
|
||||
<Copyright v-if="(theme.footerConfig?.showFooter ?? true) && (frontmatter?.showFooter ?? true)" />
|
||||
</template>
|
||||
</Layout>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import DefaultTheme from 'vitepress/theme'
|
||||
import { useData } from 'vitepress'
|
||||
import Comment from './Comment.vue'
|
||||
import Copyright from './Copyright.vue'
|
||||
|
||||
const { Layout } = DefaultTheme
|
||||
const { theme, frontmatter } = useData()
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
Reference in New Issue
Block a user