chore: 更新站点配置和清理代码

- 更新 RSS 站点 URL 为自定义域名 drdfilenest.xyz
- 从页脚移除站点地图链接,简化导航
- 更新 .gitignore 忽略 Vercel 部署文件和 pnpm 锁定文件
- 规范化 favicon 配置中的引号格式,提升代码一致性
- 修复视频文章中的 Bilibili 嵌入链接,添加正确的 https 协议
This commit is contained in:
drd_vic
2025-12-09 00:32:18 +08:00
parent c990a97eac
commit d862b06bfb
5 changed files with 11 additions and 10 deletions

3
.gitignore vendored
View File

@@ -20,8 +20,11 @@ pnpm-debug.log*
# macOS-specific files
.DS_Store
# Vercel
.vercel
# lock files
pnpm-lock.yaml
package-lock.json
bun.lockb
yarn.lock

View File

@@ -12,8 +12,7 @@ const currentYear = new Date().getFullYear();
<div class="transition border-dashed border-[oklch(85%_0.01_var(--hue))] dark:border-white/15 rounded-2xl mb-12 flex flex-col items-center justify-center px-6">
<div class="transition text-50 text-sm text-center">
&copy; <span id="copyright-year">{currentYear}</span> {profileConfig.name}. All Rights Reserved. /
<a class="transition link text-[var(--primary)] font-medium" target="_blank" href={url('rss.xml')}>RSS</a> /
<a class="transition link text-[var(--primary)] font-medium" target="_blank" href={url('sitemap-index.xml')}>Sitemap</a><br>
<a class="transition link text-[var(--primary)] font-medium" target="_blank" href={url('rss.xml')}>RSS</a> /<br>
Powered by
<a class="transition link text-[var(--primary)] font-medium" target="_blank" href="https://astro.build">Astro</a> &
<a class="transition link text-[var(--primary)] font-medium" target="_blank" href="https://github.com/saicaca/fuwari">Fuwari</a>

View File

@@ -32,10 +32,10 @@ export const siteConfig: SiteConfig = {
favicon: [
// 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
}
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
},
],
};

View File

@@ -2,11 +2,10 @@
title: Include Video in the Posts
published: 2023-08-01
description: This post demonstrates how to include embedded video in a blog post.
tags: [Example, Video]
tags: [Example]
category: Examples
draft: false
---
Just copy the embed code from YouTube or other platforms, and paste it in the markdown file.
```yaml
@@ -25,4 +24,4 @@ published: 2023-10-19
## Bilibili
<iframe width="100%" height="468" src="//player.bilibili.com/player.html?bvid=BV1fK4y1s7Qf&p=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>
<iframe width="100%" height="468" src="https://player.bilibili.com/player.html?bvid=BV1fK4y1s7Qf&p=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>

View File

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