Files
blog/.vitepress/config.mts
kerbores 21de74de9f 🎉 初始化
Signed-off-by: kerbores <kerbores@gmail.com>
2025-08-07 16:08:45 +08:00

116 lines
3.3 KiB
TypeScript

import { defineConfig } from "vitepress";
const ogDescription =
"个人技术博客,记录一些技术点,分享一些经验,记录一些生活点滴。";
const ogImage = "/logo.png";
const ogTitle = "Kerbores' Blog";
const ogUrl = "https://blog.riemann.tech";
// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "Kerbores' Blog",
description: "A Blog based on vitepress",
lang: "zh-CN",
lastUpdated: true,
head: [
["link", { rel: "icon", type: "image/svg+xml", href: "/logo.png" }],
["meta", { property: "og:type", content: "blog" }],
["meta", { property: "og:title", content: ogTitle }],
["meta", { property: "og:image", content: ogImage }],
["meta", { property: "og:url", content: ogUrl }],
["meta", { property: "og:description", content: ogDescription }],
],
themeConfig: {
logo: "/logo.png",
editLink: {
text: "为此页提供修改建议",
pattern:
"https://gitea.riemann.tech/kerbores/blog/_edit/develop/docs/:path",
},
search: {
provider: "local",
},
footer: {
copyright: "Copyright © 2025-present blog.riemann.tech",
message:
'<a href="https://beian.mps.gov.cn/#/query/webSearch?code=50010802005843" rel="noreferrer" target="_blank"> <span style="line-height:25px"><img src="https://beian.mps.gov.cn/web/assets/logo01.6189a29f.png" style="display:inline" width="12px" /> 渝公网安备50010802005843 渝ICP备2021000420号</span> </a> ',
},
nav: [
{ text: "首页", link: "/" },
{
text: "开发",
activeMatch: "/develop/",
items: [
{
text: "前端",
link: "/develop/front",
activeMatch: "/develop/front/",
},
{
text: "后端",
link: "/develop/server",
activeMatch: "/develop/server/",
},
],
},
{
text: "工具",
activeMatch: "/tools/",
items: [
{
text: "基本软件",
link: "/tools/base",
activeMatch: "/tools/base/",
},
{
text: "办公",
link: "/tools/office",
activeMatch: "/tools/office/",
},
],
},
{
text: "环境",
activeMatch: "/environment/",
items: [
{
text: "操作系统",
link: "/environment/os",
activeMatch: "/environment/os/",
},
{
text: "前端",
link: "/environment/front",
activeMatch: "/environment/front/",
},
{
text: "后端",
link: "/environment/server",
activeMatch: "/environment/server/",
},
{
text: "ide",
link: "/environment/ide",
activeMatch: "/environment/ide/",
},
],
},
{ text: "折腾", link: "/explorer", activeMatch: "/explorer/" },
],
sidebar: [
{
text: "Examples",
items: [
{ text: "Markdown Examples", link: "/markdown-examples" },
{ text: "Runtime API Examples", link: "/api-examples" },
],
},
],
socialLinks: [
{ icon: "gitea", link: "git@git.riemann.tech:wangguiyuan/blog.git" },
],
},
});