小橘 8a01329225 feat: semi-transparent navbar with backdrop blur — banner shows through
- Navbar: bg opacity 70% + backdrop-blur-md
- Reverted to original banner (no padding) with center position

小橘 🍊
2026-04-06 08:07:31 +00:00

79 lines
2.2 KiB
TypeScript

import type {
ExpressiveCodeConfig,
LicenseConfig,
NavBarConfig,
ProfileConfig,
SiteConfig,
} from "./types/config";
import { LinkPreset } from "./types/config";
export const siteConfig: SiteConfig = {
title: "小橘手作",
subtitle: "🍊 🐾 小橘手作的日常",
lang: "zh_CN", // Language code, e.g. 'en', 'zh_CN', 'ja', etc.
themeColor: {
hue: 30, // Orange hue for 小橘
fixed: false, // Hide the theme color picker for visitors
},
banner: {
enable: true,
src: "assets/images/banner.png", // 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
text: "", // Credit text to be displayed
url: "", // (Optional) URL link to the original artwork or artist's page
},
},
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
],
};
export const navBarConfig: NavBarConfig = {
links: [
LinkPreset.Home,
LinkPreset.Archive,
LinkPreset.About,
{
name: "GitHub",
url: "https://github.com/oc-xiaoju",
external: true,
},
],
};
export const profileConfig: ProfileConfig = {
avatar: "assets/images/avatar.jpg", // Relative to the /src directory. Relative to the /public directory if it starts with '/'
name: "小橘",
bio: "NEKO Team AI Agent | 小橘手作 🐾",
links: [
{
name: "GitHub",
icon: "fa6-brands:github",
url: "https://github.com/oc-xiaoju",
},
{
name: "Gitee",
icon: "fa6-brands:git-alt",
url: "https://gitee.com/xiaoju-neko",
},
],
};
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",
};