diff --git a/.vscode/settings.json b/.vscode/settings.json index b91cc0d..3a1f6ea 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,22 +1,20 @@ { - "editor.formatOnSave": true, - "editor.defaultFormatter": "biomejs.biome", - "[javascript]": { - "editor.defaultFormatter": "biomejs.biome" - }, - "[javascriptreact]": { - "editor.defaultFormatter": "biomejs.biome" - }, - "[typescript]": { - "editor.defaultFormatter": "biomejs.biome" - }, - "[typescriptreact]": { - "editor.defaultFormatter": "biomejs.biome" - }, - "editor.codeActionsOnSave": { - "source.fixAll": "explicit", - "quickfix.biome": "always", - "source.organizeImports.biome": "always" - }, - "frontMatter.dashboard.openOnStart": false + "editor.formatOnSave": false, + "editor.defaultFormatter": "biomejs.biome", + "[javascript]": { + "editor.defaultFormatter": "biomejs.biome" + }, + "[javascriptreact]": { + "editor.defaultFormatter": "biomejs.biome" + }, + "[typescript]": { + "editor.defaultFormatter": "biomejs.biome" + }, + "[typescriptreact]": { + "editor.defaultFormatter": "biomejs.biome" + }, + "editor.codeActionsOnSave": { + "source.fixAll.biome": "explicit" + }, + "frontMatter.dashboard.openOnStart": false } diff --git a/astro.config.mjs b/astro.config.mjs index 621c415..cff6764 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -26,7 +26,7 @@ import { pluginCustomCopyButton } from "./src/plugins/expressive-code/custom-cop // https://astro.build/config export default defineConfig({ - site: "https://fuwari.vercel.app/", + site: "https://milkfunc.top/", base: "/", trailingSlash: "always", integrations: [ diff --git a/src/assets/images/avatar.webp b/src/assets/images/avatar.webp new file mode 100644 index 0000000..8374bd2 Binary files /dev/null and b/src/assets/images/avatar.webp differ diff --git a/src/assets/images/banner.webp b/src/assets/images/banner.webp new file mode 100644 index 0000000..78c98fb Binary files /dev/null and b/src/assets/images/banner.webp differ diff --git a/src/assets/images/banner_verina.webp b/src/assets/images/banner_verina.webp new file mode 100644 index 0000000..94b738b Binary files /dev/null and b/src/assets/images/banner_verina.webp differ diff --git a/src/config.ts b/src/config.ts index c7b2d11..d4f7e02 100644 --- a/src/config.ts +++ b/src/config.ts @@ -8,16 +8,16 @@ import type { import { LinkPreset } from "./types/config"; export const siteConfig: SiteConfig = { - title: "Fuwari", - subtitle: "Demo Site", - lang: "en", // Language code, e.g. 'en', 'zh_CN', 'ja', etc. + title: "MilkFunc", + subtitle: "Blogs", + lang: "zh_CN", // Language code, e.g. 'en', 'zh_CN', 'ja', etc. themeColor: { 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: { - enable: false, - src: "assets/images/demo-banner.png", // Relative to the /src directory. Relative to the /public directory if it starts with '/' + enable: true, + 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 credit: { enable: false, // Display the credit text of the banner image @@ -40,40 +40,31 @@ export const siteConfig: SiteConfig = { }; export const navBarConfig: NavBarConfig = { - links: [ - 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 - }, - ], + links: [LinkPreset.Home, LinkPreset.Archive, LinkPreset.About], }; export const profileConfig: ProfileConfig = { - avatar: "assets/images/demo-avatar.png", // Relative to the /src directory. Relative to the /public directory if it starts with '/' - name: "Lorem Ipsum", - bio: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.", + avatar: "assets/images/avatar.webp", // Relative to the /src directory. Relative to the /public directory if it starts with '/' + name: "CapaCake", + bio: "😨为什么我的电容炸了?", links: [ - { - name: "Twitter", - 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 - // `pnpm add @iconify-json/` - url: "https://twitter.com", - }, - { - name: "Steam", - icon: "fa6-brands:steam", - url: "https://store.steampowered.com", - }, - { - name: "GitHub", - icon: "fa6-brands:github", - url: "https://github.com/saicaca/fuwari", - }, + // { + // name: "Twitter", + // 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 + // // `pnpm add @iconify-json/` + // url: "https://twitter.com", + // }, + // { + // name: "Steam", + // icon: "fa6-brands:steam", + // url: "https://store.steampowered.com", + // }, + // { + // name: "GitHub", + // icon: "fa6-brands:github", + // url: "https://github.com/saicaca/fuwari", + // }, ], };