Files
SiMengWebSite_Notes/docs/.vuepress/config.ts
2025-09-22 07:25:37 -04:00

54 lines
1.3 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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
}
}),
})