54 lines
1.3 KiB
TypeScript
54 lines
1.3 KiB
TypeScript
import { defineUserConfig } from 'vuepress'
|
||
import { plumeTheme } from 'vuepress-theme-plume'
|
||
import { viteBundler } from '@vuepress/bundler-vite'
|
||
|
||
export default defineUserConfig({
|
||
base: '/',
|
||
lang: 'zh-CN',
|
||
title: '祀梦的花园',
|
||
description: '爱与回忆的小世界,记录生活中的每一份温暖与感动',
|
||
|
||
head: [
|
||
// 配置站点图标
|
||
['link', { rel: 'icon', type: 'image/png', href: 'https://theme-plume.vuejs.press/favicon-32x32.png' }],
|
||
],
|
||
|
||
bundler: viteBundler(),
|
||
shouldPrefetch: false, // 站点较大,页面数量较多时,不建议启用
|
||
|
||
theme: plumeTheme({
|
||
/* 博客文章页面链接前缀 */
|
||
article: '/article/',
|
||
|
||
/**
|
||
* 编译缓存,加快编译速度
|
||
*/
|
||
cache: 'filesystem',
|
||
|
||
/* 本地搜索, 默认启用 */
|
||
search: { provider: 'local' },
|
||
|
||
/**
|
||
* 文章贡献者配置
|
||
*/
|
||
contributors: {
|
||
mode: 'inline', // 设置为inline模式,在文章页底部与最后更新时间并列显示
|
||
info: [
|
||
{
|
||
username: 'si-meng', // 您的GitHub用户名
|
||
name: '祀梦', // 显示名称
|
||
alias: ['祀梦', 'simeng'], // 别名,本地git配置中的用户名
|
||
}
|
||
]
|
||
},
|
||
|
||
/**
|
||
* Git插件配置
|
||
* 设置为true以在开发环境也启用
|
||
*/
|
||
plugins: {
|
||
git: true
|
||
}
|
||
}),
|
||
})
|