diff --git a/content/post/2026/2026-05-20-我的静态博客动态化方案/index.md b/content/post/2026/2026-05-20-我的静态博客动态化方案/index.md index 17b14294..50702b0f 100644 --- a/content/post/2026/2026-05-20-我的静态博客动态化方案/index.md +++ b/content/post/2026/2026-05-20-我的静态博客动态化方案/index.md @@ -256,7 +256,7 @@ Hugo 博客的本地管理后台,Next.js 16 + Tailwind CSS 4,运行在 `loca > "把 XXX 页面的色调整体改为 SEN 暖色系(bg: #fcfaf5, text: #223d66, accent: #1d3d6c, line: #e4dfd2)" ### API 对接 -> "对接 rssapi.usj.cc 的 XXX 接口,token 在 .env 的 RSS_API_TOKEN,后端代理不要暴露到前端" +> "对接 api.usj.cc 的 XXX 接口,token 在 .env 的 RSS_API_TOKEN,后端代理不要暴露到前端" ### 常见问题描述 - "布局太窄了" → 去掉 max-w 限制 diff --git a/scripts/check_links.js b/scripts/check_links.js index bd2da204..63a7641b 100644 --- a/scripts/check_links.js +++ b/scripts/check_links.js @@ -2,7 +2,7 @@ const fs = require('fs'); const path = require('path'); const axios = require('axios'); -const API_BASE = 'https://rssapi.usj.cc'; +const API_BASE = 'https://api.usj.cc'; const HEALTH_URL = `${API_BASE}/api/health`; const LINKS_URL = `${API_BASE}/api/links`; diff --git a/themes/Ying/layouts/page/circles.html b/themes/Ying/layouts/page/circles.html index 7ddeab1a..bd8c0408 100644 --- a/themes/Ying/layouts/page/circles.html +++ b/themes/Ying/layouts/page/circles.html @@ -448,7 +448,7 @@ hardTtl: window.BrowserCache ? window.BrowserCache.formatDuration(window.FriendCircle.CACHE_OPTIONS.hardTtl) : window.FriendCircle.CACHE_OPTIONS.hardTtl }); } - return fetch("https://rssapi.usj.cc/api/articles?limit=50") + return fetch("https://api.usj.cc/api/articles?limit=50") .then(function(res) { if (!res.ok) throw new Error("Network response was not ok"); return res.json(); diff --git a/themes/Ying/layouts/page/links.html b/themes/Ying/layouts/page/links.html index b03d5938..86ef4443 100644 --- a/themes/Ying/layouts/page/links.html +++ b/themes/Ying/layouts/page/links.html @@ -126,7 +126,7 @@ softTtl: window.BrowserCache ? window.BrowserCache.formatDuration(CACHE_OPTIONS.softTtl) : CACHE_OPTIONS.softTtl, hardTtl: window.BrowserCache ? window.BrowserCache.formatDuration(CACHE_OPTIONS.hardTtl) : CACHE_OPTIONS.hardTtl }); - return fetch('https://rssapi.usj.cc/api/links') + return fetch('https://api.usj.cc/api/links') .then(function(res) { if (!res.ok) throw new Error('Failed to fetch links'); return res.json(); diff --git a/write/CLAUDE.md b/write/CLAUDE.md index cad21d6d..24b0654e 100644 --- a/write/CLAUDE.md +++ b/write/CLAUDE.md @@ -25,11 +25,11 @@ Hugo 博客的本地管理后台,Next.js 16 + Tailwind CSS 4,运行在 `loca - 回复评论时显示父级评论引用 ### 4. 订阅源管理 `/feeds` -- 对接 `rssapi.usj.cc`,token 存储在 `.env` 服务端 +- 对接 `api.usj.cc`,token 存储在 `.env` 服务端 - 增删 RSS 订阅源,批量检测存活状态 ### 5. 友链管理 `/links` -- 对接 `rssapi.usj.cc`,token 存储在 `.env` 服务端 +- 对接 `api.usj.cc`,token 存储在 `.env` 服务端 - 增删改友链,支持隐藏/显示切换 - 单个/批量存活检测,失联标记 @@ -59,7 +59,7 @@ Hugo 博客的本地管理后台,Next.js 16 + Tailwind CSS 4,运行在 `loca - **样式**: Tailwind CSS 4,SEN 主题暖色系 - **数据**: 直接读写 Hugo Markdown 文件(gray-matter),无数据库 - **评论**: Artalk API v2 -- **RSS/友链**: 自建 API `rssapi.usj.cc` + SCF 代理 +- **RSS/友链**: 自建 API `api.usj.cc` + SCF 代理 - **部署**: 执行 shell git push ## 提示词指南 @@ -75,7 +75,7 @@ Hugo 博客的本地管理后台,Next.js 16 + Tailwind CSS 4,运行在 `loca > "把 XXX 页面的色调整体改为 SEN 暖色系(bg: #fcfaf5, text: #223d66, accent: #1d3d6c, line: #e4dfd2)" ### API 对接 -> "对接 rssapi.usj.cc 的 XXX 接口,token 在 .env 的 RSS_API_TOKEN,后端代理不要暴露到前端" +> "对接 api.usj.cc 的 XXX 接口,token 在 .env 的 RSS_API_TOKEN,后端代理不要暴露到前端" ### 常见问题描述 - "布局太窄了" → 去掉 max-w 限制