refactor: 更新站点域名和配置

- 将站点域名从 drdfilenest.xyz:10443 更新为 blog.drdfilenest.xyz
- 更新导航栏中Gitea链接从 drdfilenest.xyz:8443 改为 gitea.drdfilenest.xyz
- 移除favicon配置以使用默认图标
- 确保RSS feed使用正确的站点URL
This commit is contained in:
drd_vic
2025-12-09 19:15:00 +08:00
parent 2da263d763
commit 740cf0bbf3
3 changed files with 9 additions and 9 deletions

View File

@@ -25,7 +25,7 @@ import { remarkReadingTime } from "./src/plugins/remark-reading-time.mjs";
// https://astro.build/config
export default defineConfig({
site: "https://drdfilenest.xyz:10443/",
site: "https://blog.drdfilenest.xyz/",
base: "/",
trailingSlash: "always",
integrations: [

View File

@@ -10,7 +10,7 @@ import { LinkPreset } from "./types/config";
export const siteConfig: SiteConfig = {
title: "DRDFileNest",
subtitle: "A Site For File Storage",
url: "https://drdfilenest.xyz:10443/",
url: "https://blog.drdfilenest.xyz/",
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
@@ -32,11 +32,11 @@ export const siteConfig: SiteConfig = {
},
favicon: [
// Leave this array empty to use the default favicon
{
src: "/favicon/logo.jpg", // 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
},
// {
// src: "/favicon/logo.jpg", // 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
// },
],
};
@@ -47,7 +47,7 @@ export const navBarConfig: NavBarConfig = {
LinkPreset.About,
{
name: "Gitea",
url: "https://drdfilenest.xyz:8443/", // Internal links should not include the base path, as it is automatically added
url: "https://gitea.drdfilenest.xyz/", // 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
},
],

View File

@@ -22,7 +22,7 @@ export async function GET(_context: APIContext) {
return rss({
title: siteConfig.title,
description: siteConfig.subtitle || "No description",
site: siteConfig.url ?? "https://drdfilenest.xyz:10443/",
site: siteConfig.url ?? "https://blog.drdfilenest.xyz/",
items: blog.map((post) => {
const content =
typeof post.body === "string" ? post.body : String(post.body || "");