新增:页脚支持配置公安备案号

This commit is contained in:
2022-08-01 22:02:28 +08:00
parent cffeda83ce
commit 6217a046c7
5 changed files with 88 additions and 73 deletions

View File

@@ -4,7 +4,7 @@
<Comment v-if="!(theme.commentConfig?.hideComments ?? false)" />
</template>
<template #layout-bottom>
<Copyright v-if="(theme.footerConfig?.showFooter ?? true) && (frontmatter?.showFooter ?? true)" />
<Footer v-if="(theme.footerConfig?.showFooter ?? true) && (frontmatter?.showFooter ?? true)" />
</template>
</Layout>
</template>
@@ -13,7 +13,7 @@
import DefaultTheme from 'vitepress/theme'
import { useData } from 'vitepress'
import Comment from './Comment.vue'
import Copyright from './Copyright.vue'
import Footer from './Footer.vue'
const { Layout } = DefaultTheme
const { theme, frontmatter } = useData()