feat: 迁移博客个性化配置

This commit is contained in:
2026-03-21 15:16:45 +08:00
parent 5de5876bde
commit d97e6c66d6
6 changed files with 46 additions and 57 deletions

38
.vscode/settings.json vendored
View File

@@ -1,22 +1,20 @@
{ {
"editor.formatOnSave": true, "editor.formatOnSave": false,
"editor.defaultFormatter": "biomejs.biome", "editor.defaultFormatter": "biomejs.biome",
"[javascript]": { "[javascript]": {
"editor.defaultFormatter": "biomejs.biome" "editor.defaultFormatter": "biomejs.biome"
}, },
"[javascriptreact]": { "[javascriptreact]": {
"editor.defaultFormatter": "biomejs.biome" "editor.defaultFormatter": "biomejs.biome"
}, },
"[typescript]": { "[typescript]": {
"editor.defaultFormatter": "biomejs.biome" "editor.defaultFormatter": "biomejs.biome"
}, },
"[typescriptreact]": { "[typescriptreact]": {
"editor.defaultFormatter": "biomejs.biome" "editor.defaultFormatter": "biomejs.biome"
}, },
"editor.codeActionsOnSave": { "editor.codeActionsOnSave": {
"source.fixAll": "explicit", "source.fixAll.biome": "explicit"
"quickfix.biome": "always", },
"source.organizeImports.biome": "always" "frontMatter.dashboard.openOnStart": false
},
"frontMatter.dashboard.openOnStart": false
} }

View File

@@ -26,7 +26,7 @@ import { pluginCustomCopyButton } from "./src/plugins/expressive-code/custom-cop
// https://astro.build/config // https://astro.build/config
export default defineConfig({ export default defineConfig({
site: "https://fuwari.vercel.app/", site: "https://milkfunc.top/",
base: "/", base: "/",
trailingSlash: "always", trailingSlash: "always",
integrations: [ integrations: [

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 424 KiB

View File

@@ -8,16 +8,16 @@ import type {
import { LinkPreset } from "./types/config"; import { LinkPreset } from "./types/config";
export const siteConfig: SiteConfig = { export const siteConfig: SiteConfig = {
title: "Fuwari", title: "MilkFunc",
subtitle: "Demo Site", subtitle: "Blogs",
lang: "en", // Language code, e.g. 'en', 'zh_CN', 'ja', etc. lang: "zh_CN", // Language code, e.g. 'en', 'zh_CN', 'ja', etc.
themeColor: { themeColor: {
hue: 250, // Default hue for the theme color, from 0 to 360. e.g. red: 0, teal: 200, cyan: 250, pink: 345 hue: 250, // Default hue for the theme color, from 0 to 360. e.g. red: 0, teal: 200, cyan: 250, pink: 345
fixed: false, // Hide the theme color picker for visitors fixed: true, // Hide the theme color picker for visitors
}, },
banner: { banner: {
enable: false, enable: true,
src: "assets/images/demo-banner.png", // Relative to the /src directory. Relative to the /public directory if it starts with '/' src: "assets/images/banner.webp", // Relative to the /src directory. Relative to the /public directory if it starts with '/'
position: "center", // Equivalent to object-position, only supports 'top', 'center', 'bottom'. 'center' by default position: "center", // Equivalent to object-position, only supports 'top', 'center', 'bottom'. 'center' by default
credit: { credit: {
enable: false, // Display the credit text of the banner image enable: false, // Display the credit text of the banner image
@@ -40,40 +40,31 @@ export const siteConfig: SiteConfig = {
}; };
export const navBarConfig: NavBarConfig = { export const navBarConfig: NavBarConfig = {
links: [ links: [LinkPreset.Home, LinkPreset.Archive, LinkPreset.About],
LinkPreset.Home,
LinkPreset.Archive,
LinkPreset.About,
{
name: "GitHub",
url: "https://github.com/saicaca/fuwari", // Internal links should not include the base path, as it is automatically added
external: true, // Show an external link icon and will open in a new tab
},
],
}; };
export const profileConfig: ProfileConfig = { export const profileConfig: ProfileConfig = {
avatar: "assets/images/demo-avatar.png", // Relative to the /src directory. Relative to the /public directory if it starts with '/' avatar: "assets/images/avatar.webp", // Relative to the /src directory. Relative to the /public directory if it starts with '/'
name: "Lorem Ipsum", name: "CapaCake",
bio: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.", bio: "😨为什么我的电容炸了?",
links: [ links: [
{ // {
name: "Twitter", // name: "Twitter",
icon: "fa6-brands:twitter", // Visit https://icones.js.org/ for icon codes // icon: "fa6-brands:twitter", // Visit https://icones.js.org/ for icon codes
// You will need to install the corresponding icon set if it's not already included // // You will need to install the corresponding icon set if it's not already included
// `pnpm add @iconify-json/<icon-set-name>` // // `pnpm add @iconify-json/<icon-set-name>`
url: "https://twitter.com", // url: "https://twitter.com",
}, // },
{ // {
name: "Steam", // name: "Steam",
icon: "fa6-brands:steam", // icon: "fa6-brands:steam",
url: "https://store.steampowered.com", // url: "https://store.steampowered.com",
}, // },
{ // {
name: "GitHub", // name: "GitHub",
icon: "fa6-brands:github", // icon: "fa6-brands:github",
url: "https://github.com/saicaca/fuwari", // url: "https://github.com/saicaca/fuwari",
}, // },
], ],
}; };