https://github.com/ycjcl868/blog
🍳 Zero-cost blog implements with Notion and Cloudflare Pages.
https://github.com/ycjcl868/blog
cloudflare cloudflare-pages nextjs notion react
Last synced: 16 days ago
JSON representation
🍳 Zero-cost blog implements with Notion and Cloudflare Pages.
- Host: GitHub
- URL: https://github.com/ycjcl868/blog
- Owner: ycjcl868
- Created: 2018-07-07T16:09:06.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-03-26T04:10:42.000Z (28 days ago)
- Last Synced: 2025-03-30T14:11:13.723Z (23 days ago)
- Topics: cloudflare, cloudflare-pages, nextjs, notion, react
- Language: TypeScript
- Homepage: https://www.rustc.cloud
- Size: 4.64 MB
- Stars: 75
- Watchers: 1
- Forks: 26
- Open Issues: 0
-
Metadata Files:
- Readme: README-zh-CN.md
- Funding: .github/funding.yml
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# 📝 Notion Blog - 零成本实时更新的现代化博客系统
中文 | [English](./README.md)
[](https://developers.cloudflare.com/pages/)
[](https://remix.run/)基于 Remix 和 Notion 构建,部署在 Cloudflare Pages ,使用 Edge Function 的无成本、可实时更新的博客站点。

## 🔥 特性
- 直接使用你的 Notion 页面创建博客,博客内容访问实时更新
- 支持智能缓存(`stale-while-revalidate`),确保页面快速加载的同时,自动在后台更新内容
- 使用 [Remix](https://remix.run/) 构建,最新的技术栈
- 已经部署到 Cloudflare Pages,无需费用
- 使用 [TailwindCSS](https://tailwindcss.com/) 设计简洁美观的博客
- 支持分类标签和搜索功能
- 支持 RSS Feed
- 主题 Light/Dark 切换
- [ ] 国际化支持,运行时大语言模型翻译## 🚀 性能
[PageSpeed Insights](https://pagespeed.web.dev/analysis/https-www-rustc-cloud/1zuls2fmg9?hl=zh-cn&form_factor=desktop)

## 📦 安装
使用以下指令将该项目克隆到你本地
```
git clone https://github.com/ycjcl868/blog
```接下来,使用 pnpm 安装依赖
```
pnpm i
```## 生成 Notion 数据库
复制这个 [Notion 模板](https://ycjcl868.notion.site/b7e25fb9b29a48269e92e36f65a3ffbb),共享生成连接。

链接中对应的 `PAGE_ID` 是:`https://www.notion.so/{workspace_name}/{page_id}`,通常是地址后 32 位数字
## 🔨 本地开发
新建 `.dev.vars`,配置如下:
```bash
NOTION_PAGE_ID=xxxx # Notion 共享 ID
NOTION_ACCESS_TOKEN=secret_xxx # 在这里申请一个 TOKEN:https://developers.notion.com/docs/create-a-notion-integration
```然后执行启动命令:
```
npm run start
```访问 `localhost:3000` 即可访问
## 📝 发表你的想法
如果你有任何建议,欢迎提交 issue 或者 pull request。
## Star History
[](https://star-history.com/#ycjcl868/blog&Date)