1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

feat: 添加首页 footbar

This commit is contained in:
2025-03-13 23:59:38 +08:00
parent f697db86db
commit ced9235ba5
4 changed files with 622 additions and 4 deletions

View File

@@ -6,6 +6,10 @@ import './style.css'
import './custom.css'
import Announcement from './components/Announcement.vue'
import ArticleInfo from './components/ArticleInfo.vue'
import { FooterData } from '../../home-footbar.mts'
import {
HomeFooter
} from '@theojs/lumen'
import {
NolebaseGitChangelogPlugin
} from '@nolebase/vitepress-plugin-git-changelog/client'
@@ -34,6 +38,8 @@ export default {
'nav-bar-content-after': () => h(NolebaseEnhancedReadabilitiesMenu),
// 为较窄的屏幕(通常是小于 iPad Mini添加阅读增强菜单
'nav-screen-content-after': () => h(NolebaseEnhancedReadabilitiesScreenMenu),
// [配置] 首页 Footbar
'layout-bottom': () => h(HomeFooter, { Footer_Data: FooterData })
})
},
enhanceApp({ app, router, siteData }) {

41
docs/home-footbar.mts Normal file
View File

@@ -0,0 +1,41 @@
import type { FooterData as FooterDataType } from '@theojs/lumen'
// [配置] 首页 Footbar
export const FooterData: FooterDataType = {
// beian: { icp: '备案号', police: '公网安备号', showIcon: true },
author: {
name: 'coder-xiaomo', // 程序员小墨
// link: 'https://',
},
group: [
// {
// title: '外部链接',
// icon: 'bx:link', // `iconify`图标
// color: 'rgba(255, 87, 51, 1)',
// links: [
// { name: '示例1', link: 'https://', icon: 'solar:book-bold' },
// { name: '示例2', link: 'https://' }
// ]
// },
{
title: '开源地址',
icon: 'bx:link',
color: 'rgba(255, 87, 51, 1)',
links: [
{
name: 'GitHub',
link: 'https://github.com/coder-xiaomo/tutorials',
},
{
name: 'Gitee (码云)',
link: 'https://gitee.com/coder-xiaomo/tutorials',
},
{
name: 'GitCode',
link: 'https://gitcode.com/coder-xiaomo/tutorials',
},
]
}
]
}