style: 迁移 Cloudflare

This commit is contained in:
Ad-closeNN
2026-02-28 17:38:53 +08:00
parent 5a3a0ca1a2
commit 22409c9222
10 changed files with 20 additions and 33 deletions
-12
View File
@@ -25,15 +25,3 @@ pnpm-debug.log*
package-lock.json package-lock.json
bun.lockb bun.lockb
yarn.lock yarn.lock
# My test files
duolingo.py
duolingo copy.py
test.py
temp.js
Yeah*.json
main*.py
# Coming Soon...
gh-actions-daily-task.md
+1 -1
View File
@@ -27,7 +27,7 @@ import rehypeExternalLinks from 'rehype-external-links';
// https://astro.build/config // https://astro.build/config
export default defineConfig({ export default defineConfig({
site: "https://adclosenn.top", site: "https://blog.adclosenn.top",
base: "/", base: "/",
trailingSlash: "always", trailingSlash: "always",
integrations: [ integrations: [
-4
View File
@@ -1,4 +0,0 @@
[[headers]]
for = "/*"
[headers.values]
cache-control = "no-cache"
+9 -4
View File
@@ -25,10 +25,15 @@ const currentYear = new Date().getFullYear();
强力驱动 强力驱动
<br> <br>
<a class="transition link text-[var(--primary)] font-medium" target="_blank" href="https://www.netlify.com">Netlify</a> <a class="transition link text-[var(--primary)] font-medium" target="_blank" href="https://www.cloudflare.com">Cloudflare</a>
构建并部署至全球 Amazon CDN 节点 构建并部署至全球 Cloudflare CDN 节点
<br> <br>
</div> </div>
<img src="https://www.netlify.com/assets/badges/netlify-badge-color-bg.svg" alt="Deploys by Netlify"> <img
src="https://www.cloudflare.com/img/logo-cloudflare-dark.svg"
alt="Cloudflare"
draggable="false"
ondragstart="return false;"
style="height: 30px; user-select: none; -webkit-user-drag: none;"
>
</div> </div>
+2 -2
View File
@@ -10,7 +10,7 @@ import { LinkPreset } from "./types/config";
export const siteConfig: SiteConfig = { export const siteConfig: SiteConfig = {
title: "Ad_closeNN 的小站", title: "Ad_closeNN 的小站",
subtitle: "Ad_closeNN の 小站,时不时会刷新一些野生东西 | ✨ 欢迎友链,天天开心! ✨", subtitle: "Ad_closeNN の 小站,时不时会刷新一些野生东西 | ✨ 欢迎友链 ✨",
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: 140, // Default hue for the theme color, from 0 to 360. e.g. red: 0, teal: 200, cyan: 250, pink: 345 hue: 140, // Default hue for the theme color, from 0 to 360. e.g. red: 0, teal: 200, cyan: 250, pink: 345
@@ -59,7 +59,7 @@ export const navBarConfig: NavBarConfig = {
LinkPreset.Archive, LinkPreset.Archive,
LinkPreset.About, LinkPreset.About,
{ {
name: "友情链接", name: "友",
url: "/friends/", // Internal links should not include the base path, as it is automatically added url: "/friends/", // Internal links should not include the base path, as it is automatically added
external: false, // Show an external link icon and will open in a new tab external: false, // Show an external link icon and will open in a new tab
}, },
+2 -2
View File
@@ -21,11 +21,11 @@ Folo 也就是之前的 Follow,只不过改名成了 Folo。
**RSS 标签** 这种方法适用于悄无声息地认证。 **RSS 标签** 这种方法适用于悄无声息地认证。
**纯文本** 这种方法适合大部分博客。 **纯文本** 这种方法适合大部分博客。
本站使用 [RSS 标签](#rss-标签) 方法进行订阅源认证:[rss.xml](https://adclosenn.top/rss.xml) 。 本站使用 [RSS 标签](#rss-标签) 方法进行订阅源认证:[rss.xml](https://blog.adclosenn.top/rss.xml) 。
# 纯文本认证 # 纯文本认证
这种方法极其简单,你只需要发一篇文章到你的博客或者其他平台即可。本质上就是通过读取你的 RSS 订阅文件,查看里面是否有 Folo 给出的文本。所以认证文本**必须**要可在 RSS 订阅文件找到。 这种方法极其简单,你只需要发一篇文章到你的博客或者其他平台即可。本质上就是通过读取你的 RSS 订阅文件,查看里面是否有 Folo 给出的文本。所以认证文本**必须**要可在 RSS 订阅文件找到。
[https://adclosenn.top/rss.xml](https://adclosenn.top/rss.xml) 这个是本站的 RSS 订阅源地址,你可以在最下面的 Footer 处找到。 [https://blog.adclosenn.top/rss.xml](https://blog.adclosenn.top/rss.xml) 这个是本站的 RSS 订阅源地址,你可以在最下面的 Footer 处找到。
你需要将类似如这串文本(可在 Folo 中复制)粘贴到你的文章中(不要使用我的,每个人的都不一样): 你需要将类似如这串文本(可在 Folo 中复制)粘贴到你的文章中(不要使用我的,每个人的都不一样):
+1 -1
View File
@@ -8,7 +8,7 @@
::github{repo="afoim/fuwari"} ::github{repo="afoim/fuwari"}
# 站点分流 # 站点分流
经过几个月的测试,**本站**之后将弃用 Netlify 托管,转而使用免费且更强大的 Cloudflare。之前使用过的分流测试版站点已移除。 经过几个月的测试,**本站**之后将弃用 Netlify 托管,转而使用免费且更强大的 Cloudflare。之前使用过的分流测试版站点已移除。谢谢 Netlify,你好 Cloudflare
# 关于我 # 关于我
一位住在 [中华人民共和国广西壮族自治区](https://baike.baidu.com/item/%E5%B9%BF%E8%A5%BF%E5%A3%AE%E6%97%8F%E8%87%AA%E6%B2%BB%E5%8C%BA/163178) 的学生。 [me.adclosenn.top](https://me.adclosenn.top) 一位住在 [中华人民共和国广西壮族自治区](https://baike.baidu.com/item/%E5%B9%BF%E8%A5%BF%E5%A3%AE%E6%97%8F%E8%87%AA%E6%B2%BB%E5%8C%BA/163178) 的学生。 [me.adclosenn.top](https://me.adclosenn.top)
+4 -4
View File
@@ -13,12 +13,12 @@ import { Icon } from "astro-icon/components";
</div> </div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4"> <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<a href="https://www.netlify.com/" target="_blank" class="friend-card"> <a href="https://www.cloudflare.com" target="_blank" class="friend-card">
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<img src="https://www.netlify.com/favicon.ico" loading="lazy" class="w-5 h-5 rounded"> <img src="https://www.cloudflare-cn.com/favicon.ico" loading="lazy" class="w-5 h-5 rounded">
<div class="font-bold text-black dark:text-white">Netlify(主站托管平台)</div> <div class="font-bold text-black dark:text-white">Cloudflare</div>
</div> </div>
<div class="text-sm text-black/50 dark:text-white/50">亚马逊 AWS CDN</div> <div class="text-sm text-black/50 dark:text-white/50">本站使用的托管平台&CDN&赛博菩萨</div>
</a> </a>
<a href="https://github.com/saicaca/fuwari" target="_blank" class="friend-card"> <a href="https://github.com/saicaca/fuwari" target="_blank" class="friend-card">
-1
View File
@@ -79,7 +79,6 @@ export async function GET(context: APIContext) {
description: siteConfig.subtitle || 'No description', description: siteConfig.subtitle || 'No description',
site: context.site, site: context.site,
items: feed, items: feed,
// 准备迎接我的 Folo 之验证吧!——鲁迅 not 达摩(bushi
customData: `<language>${siteConfig.lang}</language><follow_challenge><feedId>177350379949135872</feedId><userId>83370505718413312</userId></follow_challenge>`, customData: `<language>${siteConfig.lang}</language><follow_challenge><feedId>177350379949135872</feedId><userId>83370505718413312</userId></follow_challenge>`,
}); });
} }
-1
View File
@@ -1 +0,0 @@
{}