blogs/vuepress.config.ts
SilverAg.L 4c90f70fc4
Some checks failed
部署文档 / build (push) Failing after 2s
2024 - 31.05.2025 All Bumped.
Thanks to the following contributors:
- @snowykami
- @frg2089
- Nya_Twisuki
2025-05-31 14:30:19 +08:00

49 lines
1.0 KiB
TypeScript

import { defineUserConfig } from "vuepress";
import theme from "./src/theme.hope.js";
export default defineUserConfig({
base: "/",
lang: "zh-CN",
title: "SilverAg.L",
description: "his personal blogs",
temp: ".temp",
cache: ".cache",
public: "public",
dest: "dist",
theme,
// 和 PWA 一起启用
shouldPrefetch: false,
head: [
// 导入相应链接
["link", { rel: "preconnect", href: "https://fonts.googleapis.com" }],
[
"link",
{ rel: "preconnect", href: "https://fonts.gstatic.com", crossorigin: "" },
],
[
"link",
{
href: "https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400..700&display=swap",
as: "font",
crossorigin: "",
},
],
[
"link",
{
href: "https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400..700&display=swap",
rel: "stylesheet",
as: "font",
crossorigin: "",
media: "print",
onload: "this.media='all'",
},
],
],
});