Files
blog-fuwari/src/config.ts
T
Ad-closeNN 26365e08b4 docs(pages): 增加仓库信息页 /info/
2. feat(config): banner 使用 WebP 格式图片
3. style(config): search 搜索条长度固定
4. style(profile): 将个人档案 profile 中的提交记录改为 /info/
5. chore(profile): 将 profile 电子邮箱地址改为 admin@adclosenn.top
6. style(config): 删除了顶部 Nav 的 主页
7. docs(pages): about 关于页面更新 2025/8/16
8. style(css): 加入专对于代码框的字体 JetBrainsMono-VF
9. fix(config): 解决misans.astro 文件中的解释 description 被定义为了 I18nKey.about 关于 的问题
10. fix(config): 修复网易云音乐音乐外链挂件未使用 https 的问题
2025-08-16 13:30:13 +08:00

137 lines
4.8 KiB
TypeScript

import type {
ExpressiveCodeConfig,
LicenseConfig,
NavBarConfig,
ProfileConfig,
SiteConfig,
UmamiConfig,
} from "./types/config";
import { LinkPreset } from "./types/config";
export const siteConfig: SiteConfig = {
title: "Ad_closeNN 的小站",
subtitle: "Ad_closeNN の 小站,时不时会刷新一些野生东西 | ✨ 欢迎友链,天天开心! ✨",
lang: "zh_CN", // Language code, e.g. 'en', 'zh-CN', 'ja', etc.
themeColor: {
hue: 140, // 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
},
banner: {
enable: true,
src: "/assets/apache_carbon.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: true, // Display the credit text of the banner image
text: "Apache | Carbon", // Credit text to be displayed
url: "https://httpd.apache.org/docs/2.4/getting-started.html", // (Optional) URL link to the original artwork or artist's page
},
},
background: {
enable: false, // Enable background image
//src: "https://eo-pic.2x.nz/h", // Background image URL (supports HTTPS)
src: "https://bing.ee123.net/img", // Bing daily theme
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: 0.5, // 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: [
{
src: '/assets/avatar.jpg',
}
// Leave this array empty to use the default favicon
// {
// src: '/favicon/icon.png', // 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
// }
],
};
export const navBarConfig: NavBarConfig = {
links: [
LinkPreset.Archive,
LinkPreset.About,
{
name: "仓库信息",
url: "/info/", // 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: "/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: "https://umami.adclosenn.top/share/jME4HFb9JmfJM5zs", // 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.adclosenn.top", // 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: "/assets/avatar.jpg", // Relative to the /src directory. Relative to the /public directory if it starts with '/'
name: "Ad_closeNN",
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/<icon-set-name>`
url: "https://twitter.com",
},
*/
{
name: "Steam",
icon: "fa6-brands:steam",
url: "https://steamcommunity.com/id/Ad_closeNN",
},
{
name: "Discord",
icon: "fa6-brands:discord",
url: "https://discord.com/users/1068060784300658688",
},
{
name: "GitHub",
icon: "fa6-brands:github",
url: "https://github.com/Ad-closeNN",
},
{
name: "Email",
icon: "ic:sharp-email",
url: "mailto:admin@adclosenn.top",
},
],
};
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 expressiveCodeConfig: ExpressiveCodeConfig = {
// Note: Some styles (such as background color) are being overridden, see the astro.config.mjs file.
// Please select a dark theme, as this blog theme currently only supports dark background color
theme: "github-dark",
};
export const umamiConfig: UmamiConfig = {
enable: true,
baseUrl: "https://umami.adclosenn.top",
shareId: "jME4HFb9JmfJM5zs",
timezone: "Asia/Shanghai",
};