118 字
1 分钟
- 次浏览
博客框架修改汇总
2026-03-31
无标签

博客框架#

使用的框架是 fuwari,一个基于 Astro 开发的静态博客模板

withastro
/
astro
Waiting for api.github.com...
00K
0K
0K
Waiting...
saicaca
/
fuwari
Waiting for api.github.com...
00K
0K
0K
Waiting...

数据与统计#

1. 阅读量统计(View Count)#

使用了 Cloudflare KV 与 Workers 查看实现

Markdown 处理与扩展#

1. Code Group 支持#

给 code-group 单独写了一个 rehype 插件 查看实现

2. 外链默认开新标签页#

使用插件:rehype-external-links

安装:pnpm install rehype-external-links
配置:

astro.config.mjs
import rehypeExternalLinks from "rehype-external-links";
rehypePlugins: [
[
rehypeExternalLinks,
{ target: "_blank", rel: ["noopener", "noreferrer"] },
],
]
博客框架修改汇总
https://blog.shenxianovo.com/posts/blog-customization/
作者
shenxianovo
发布于
2026-03-31
许可协议
CC BY-NC-SA 4.0