Skip to content

Commit e3df580

Browse files
authored
remove unused parts
1 parent e70d080 commit e3df580

File tree

4 files changed

+3
-203
lines changed

4 files changed

+3
-203
lines changed

astro.config.mjs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { defineConfig } from "astro/config";
22
import vercel from "@astrojs/vercel";
3-
import cloudflarePages from "@astrojs/cloudflare";
43
import sitemap from "@astrojs/sitemap";
54
import svelte from "@astrojs/svelte";
65
import tailwindcss from "@tailwindcss/vite";
@@ -29,10 +28,6 @@ import { remarkMermaid } from "./src/plugins/remark-mermaid.js";
2928
import { remarkReadingTime } from "./src/plugins/remark-reading-time.mjs";
3029

3130

32-
// https://astro.build/config
33-
// Choose adapter depending on deployment environment
34-
const adapter = process.env.CF_PAGES ? cloudflarePages() : vercel({ mode: "serverless" });
35-
3631
export default defineConfig({
3732
site: siteConfig.siteURL,
3833
base: "/",

src/components/comment/Twikoo.astro

Lines changed: 0 additions & 82 deletions
This file was deleted.

src/components/comment/index.astro

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/config.ts

Lines changed: 3 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ const SITE_LANG = detectBrowserLanguage("en"); // 服务端渲染时默认为 'e
2121
//const SITE_LANG = "zh"; // 强制使用的语言代码,'zh', 'en', 'ja' 等
2222

2323
// 设置网站时区
24-
const SITE_TIMEZONE = 8; // from -12 to 12 default in UTC+8
24+
const SITE_TIMEZONE = 3; // from -12 to 12 default in UTC+3
2525

2626

2727
// 站点配置
2828
export const siteConfig: SiteConfig = {
2929
// 站点 URL(以斜杠结尾)
30-
siteURL: "https://twilight.spr-aachen.com/", // 请替换为你的站点 URL 并以斜杠结尾
30+
siteURL: "https://apps-for-linux.github.io/", // 请替换为你的站点 URL 并以斜杠结尾
3131
// 站点标题
32-
title: "Twilight",
32+
title: "Apps For Linux",
3333
// 站点副标题
3434
subtitle: "Blog Template",
3535
// 语言配置
@@ -54,18 +54,6 @@ export const siteConfig: SiteConfig = {
5454
// 时区配置
5555
timeZone: SITE_TIMEZONE,
5656
// 字体配置
57-
font: {
58-
// zenMaruGothic 字体 (适合日语和英语,对中文适配一般)
59-
zenMaruGothic: {
60-
// 作为全局字体
61-
enable: true,
62-
},
63-
// Hanalei 字体 (适合中文)
64-
hanalei: {
65-
// 作为全局字体
66-
enable: false,
67-
},
68-
},
6957
// 主题色配置
7058
themeColor: {
7159
// 主题色的默认色相 (范围从 0 到 360。例如:红色:0,青色:200,蓝绿色:250,粉色:345)
@@ -76,57 +64,6 @@ export const siteConfig: SiteConfig = {
7664
// 默认主题 ("system" 跟随系统 | "light" 浅色 | "dark" 深色)
7765
defaultTheme: "system",
7866
// 壁纸配置
79-
wallpaper: {
80-
// 模式 ("banner" 横幅 | "fullscreen" 全屏 | "none" 纯色)
81-
mode: "none",
82-
},
83-
},
84-
// 横幅图片来源文本
85-
credit: {
86-
// 显示横幅图片来源文本
87-
enable: false,
88-
// 要显示的来源文本
89-
text: "Describe",
90-
// (可选) 原始艺术品或艺术家页面的 URL 链接
91-
url: "",
92-
},
93-
// 导航栏配置
94-
navbar: {
95-
// 导航栏透明模式 ("semi" 半透明加圆角 | "full" 完全透明 | "semifull" 动态透明)
96-
transparentMode: "semifull",
97-
},
98-
// 水波纹效果配置
99-
waves: {
100-
// 启用水波纹效果
101-
enable: true,
102-
// 启用性能模式 (简化波浪效果以提升性能)
103-
performanceMode: true,
104-
},
105-
},
106-
// Fullscreen 模式专属配置
107-
fullscreen: {
108-
// 层级
109-
zIndex: -1, // 确保壁纸在背景层
110-
// 壁纸透明度,0-1之间
111-
opacity: 0.9,
112-
// 背景模糊程度 (像素值)
113-
blur: 1,
114-
// 导航栏透明模式
115-
navbar: {
116-
transparentMode: "semi", // 使用半透明模式而不是完全透明
117-
},
118-
},
119-
},
120-
// OpenGraph 配置
121-
generateOgImages: false, // 注意开启图片生成后要渲染很长时间,不建议本地调试的时候开启
122-
// favicon 配置
123-
favicon: [
124-
],
125-
// bangumi 配置
126-
bangumi: {
127-
// 用户 ID
128-
userId: "your-bangumi-id", // 可以设置为 "sai" 测试
129-
},
13067
};
13168

13269
/**
@@ -290,17 +227,6 @@ export const sidebarLayoutConfig: SidebarLayoutConfig = {
290227
};
291228

292229

293-
// Umami统计配置
294-
export const umamiConfig = {
295-
// 是否显示Umami统计
296-
enabled: false,
297-
// API密钥
298-
apiKey: import.meta.env.UMAMI_API_KEY,
299-
// UmamiCloudAPI地址
300-
baseUrl: "https://api.umami.is",
301-
// 要插入的Script
302-
scripts: import.meta.env.UMAMI_TRACKING_CODE,
303-
} as const;
304230

305231

306232
// 资料配置
@@ -374,18 +300,6 @@ export const postConfig: PostConfig = {
374300
// 许可证链接
375301
url: "https://creativecommons.org/licenses/by-nc-sa/4.0/",
376302
},
377-
// 评论配置
378-
comment: {
379-
// 启用评论功能
380-
enable: false,
381-
// Twikoo 评论系统配置
382-
twikoo: {
383-
// 环境 ID
384-
envId: "https://twikoo.vercel.app",
385-
// 语言
386-
lang: "en",
387-
},
388-
},
389303
};
390304

391305
/**

0 commit comments

Comments
 (0)