Files
fuwari/src/config.ts
二叉树树 ed75f3160a fix(通知组件): 修复查看更新按钮点击失效问题并优化滚动条样式
- 将 data-diff-toggle 事件委托改为直接 onclick 绑定,解决 Astro 组件重渲染时事件监听失效问题
- 为更新列表添加 overflow-x: hidden 防止水平滚动
- 在组件内定义自定义滚动条样式,统一各浏览器显示效果
- 调整通知级别从 warning 改为 info 以匹配实际使用场景
2026-01-25 20:28:34 +08:00

171 lines
5.7 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 type {
ExpressiveCodeConfig,
GitHubEditConfig,
ImageFallbackConfig,
LicenseConfig,
NavBarConfig,
NoticeConfig,
ProfileConfig,
SiteConfig,
UmamiConfig,
} from "./types/config";
import { LinkPreset } from "./types/config";
export const noticeConfig: NoticeConfig = {
enable: true,
level: "info",
content: "我们刚刚添加了文章更新系统,自此之后的每次文章更新都会通过右下角的小铃铛提醒您。",
};
export const siteConfig: SiteConfig = {
title: "AcoFork Blog",
subtitle: "技术分享与实践",
description:
"分享网络技术、服务器部署、内网穿透、静态网站搭建、CDN优化、容器化部署等技术教程与实践经验的个人技术博客专注于云原生、无服务器架构和前后端开发作者为afoim/二叉树树",
keywords: [],
lang: "zh_CN", // 'en', 'zh_CN', 'zh_TW', 'ja', 'ko', 'es', 'th'
themeColor: {
hue: 361, // 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
forceDarkMode: false, // Force dark mode and hide theme switcher
},
banner: {
enable: false,
src: "/xinghui.avif", // 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: true, // Display the credit text of the banner image
text: "Pixiv @chokei", // Credit text to be displayed
url: "https://www.pixiv.net/artworks/122782209", // (Optional) URL link to the original artwork or artist's page
},
},
background: {
enable: true, // Enable background image
src: "/random/h", // Background image URL (supports HTTPS)
position: "center", // Background position: 'top', 'center', 'bottom'
size: "cover", // Background size: 'cover', 'contain', 'auto'
repeat: "no-repeat", // Background repeat: 'no-repeat', 'repeat', 'repeat-x', 'repeat-y'
attachment: "fixed", // Background attachment: 'fixed', 'scroll', 'local'
opacity: 1, // Background opacity (0-1)
},
toc: {
enable: true, // Display the table of contents on the right side of the post
depth: 2, // Maximum heading depth to show in the table, from 1 to 3
},
favicon: [
// Leave this array empty to use the default favicon
{
src: "https://q2.qlogo.cn/headimg_dl?dst_uin=2726730791&spec=0", // Path of the favicon, relative to the /public directory
// theme: 'light', // (Optional) Either 'light' or 'dark', set only if you have different favicons for light and dark mode
// sizes: '32x32', // (Optional) Size of the favicon, set only if you have favicons of different sizes
},
],
officialSites: [
{ url: "https://blog.acofork.com", alias: "CN" },
{ url: "https://2x.nz", alias: "Global" },
],
server: [
{ url: "", text: "Blog" },
{ url: "https://umami.acofork.com", text: "Umami" },
{ url: "https://pic1.acofork.com", text: "RandomPic" },
],
};
export const navBarConfig: NavBarConfig = {
links: [
LinkPreset.Home,
LinkPreset.Archive,
{
name: "友链",
url: "/friends/", // Internal links should not include the base path, as it is automatically added
external: false, // Show an external link icon and will open in a new tab
},
{
name: "赞助",
url: "/sponsors/", // Internal links should not include the base path, as it is automatically added
external: false, // Show an external link icon and will open in a new tab
},
{
name: "统计",
url: "https://umami.acofork.com/share/CdkXbGgZr6ECKOyK", // 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
},
{
name: "监控",
url: "https://status.acofork.com", // 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
},
{
name: "论坛",
url: "https://i.2x.nz", // 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 = {
avatar: "https://q2.qlogo.cn/headimg_dl?dst_uin=2726730791&spec=0", // Relative to the /src directory. Relative to the /public directory if it starts with '/'
name: "二叉树树",
bio: "Protect What You Love.",
links: [
{
name: "QQ",
icon: "qq", // Local icon
url: "https://qm.qq.com/q/FWqOHlwL2m",
},
{
name: "Telegram",
icon: "telegram", // Local icon
url: "https://t.me/+_07DERp7k1ljYTc1",
},
{
name: "Bilibli",
icon: "bilibili", // Local icon
url: "https://space.bilibili.com/325903362",
},
{
name: "GitHub",
icon: "github", // Local icon
url: "https://github.com/afoim",
},
{
name: "Folo",
icon: "folo", // Local icon
url: "https://app.folo.is/share/feeds/236818461447222272",
},
],
};
export const licenseConfig: LicenseConfig = {
enable: true,
name: "CC BY-NC-SA 4.0",
url: "https://creativecommons.org/licenses/by-nc-sa/4.0/",
};
export const imageFallbackConfig: ImageFallbackConfig = {
enable: false,
originalDomain: "https://eopfapi.acofork.com/pic?img=ua",
fallbackDomain: "https://eopfapi.acofork.com/pic?img=ua",
};
export const umamiConfig: UmamiConfig = {
enable: true,
baseUrl: "https://umami.acofork.com",
shareId: "CdkXbGgZr6ECKOyK",
timezone: "Asia/Shanghai",
};
export const expressiveCodeConfig: ExpressiveCodeConfig = {
theme: "github-dark",
};
export const gitHubEditConfig: GitHubEditConfig = {
enable: true,
baseUrl: "https://github.com/afoim/fuwari/blob/main/src/content/posts",
};
// todoConfig removed from here