const { getPosts } = require('markdown-from-posts') async function config() { return { extends: { markdown: { headers: { level: [2, 3] } }, }, themeConfig: { posts: await getPosts(), title: 'BBBB', description: '自定义主题BBBB', docRoot: '', hasDarkSwitch: true, homeConfig: { headline: 'BBBB大标题',//大标题 headlineHeight: 'BBBB高亮',//大标题高亮 subheading: 'BBBB小标题',//小标题 subheadingHeight: '小标题高亮',//小标题高亮 description: '自定义主题,简短banner描述',//描述 }, nav: [ { text: '首页', link: '/', icon: '' }, { text: '归档', link: '/pages/archives', icon: '' }, { text: '默认', link: '/pages/default', icon: '' }, { text: '分类', link: '/pages/category', icon: '' }, { text: '搜索', link: '/pages/search', icon: '' }, ], footer: { copyright: '湘ICP备aaaaaaaa-1' } } } } module.exports = config()