refactor: 更新站点域名和配置
- 将站点域名从 drdfilenest.xyz:10443 更新为 blog.drdfilenest.xyz - 更新导航栏中Gitea链接从 drdfilenest.xyz:8443 改为 gitea.drdfilenest.xyz - 移除favicon配置以使用默认图标 - 确保RSS feed使用正确的站点URL
This commit is contained in:
@@ -25,7 +25,7 @@ import { remarkReadingTime } from "./src/plugins/remark-reading-time.mjs";
|
|||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
site: "https://drdfilenest.xyz:10443/",
|
site: "https://blog.drdfilenest.xyz/",
|
||||||
base: "/",
|
base: "/",
|
||||||
trailingSlash: "always",
|
trailingSlash: "always",
|
||||||
integrations: [
|
integrations: [
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import { LinkPreset } from "./types/config";
|
|||||||
export const siteConfig: SiteConfig = {
|
export const siteConfig: SiteConfig = {
|
||||||
title: "DRDFileNest",
|
title: "DRDFileNest",
|
||||||
subtitle: "A Site For File Storage",
|
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.
|
lang: "zh_CN", // Language code, e.g. 'en', 'zh_CN', 'ja', etc.
|
||||||
themeColor: {
|
themeColor: {
|
||||||
hue: 250, // Default hue for the theme color, from 0 to 360. e.g. red: 0, teal: 200, cyan: 250, pink: 345
|
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: [
|
favicon: [
|
||||||
// Leave this array empty to use the default favicon
|
// Leave this array empty to use the default favicon
|
||||||
{
|
// {
|
||||||
src: "/favicon/logo.jpg", // Path of the favicon, relative to the /public directory
|
// 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
|
// 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
|
// 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,
|
LinkPreset.About,
|
||||||
{
|
{
|
||||||
name: "Gitea",
|
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
|
external: true, // Show an external link icon and will open in a new tab
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ export async function GET(_context: APIContext) {
|
|||||||
return rss({
|
return rss({
|
||||||
title: siteConfig.title,
|
title: siteConfig.title,
|
||||||
description: siteConfig.subtitle || "No description",
|
description: siteConfig.subtitle || "No description",
|
||||||
site: siteConfig.url ?? "https://drdfilenest.xyz:10443/",
|
site: siteConfig.url ?? "https://blog.drdfilenest.xyz/",
|
||||||
items: blog.map((post) => {
|
items: blog.map((post) => {
|
||||||
const content =
|
const content =
|
||||||
typeof post.body === "string" ? post.body : String(post.body || "");
|
typeof post.body === "string" ? post.body : String(post.body || "");
|
||||||
|
|||||||
Reference in New Issue
Block a user