本仓库为 笨蛋小破站 的源代码
由于本人的代码写的依托答辩所以强烈不建议你使用我的版本
原仓库: https://github.com/OXeu/Rin
Rin 博客简易部署教程 — 笨蛋小破站: https://blog.obdo.cc/feed/10
-
在文章中和页脚加入访问计数
-
友链申请页添加站长信息
因为是从变量中获取站点链接,所以你需要先在 Cloudflare Pages 的环境变量中新增一个URL
值为自己的站点链接 -
加入音乐播放器
在页面底部加入 MetingJS 播放器,歌单自己在 App.tsx 改 -
将站点描述修改为一言
-
字体更换为 MiSans
-
增加 Live2D 看板娘
注:上方所调用的所有 API 均为本人自托管,你也可以直接加到自己的站点中使用
- 计数: https://api.obdo.cc/count
- MetingAPI: https://api.obdo.cc/meting
- 一言: https://api.obdo.cc/hitokoto
- 看板娘: https://api.obdo.cc/live2d.js
由于 Rin 是一个刚起步的项目,功能方面存在着很多不足,或许这里的功能今后都会在官方版本中实现,这里只是因为自己需要所以就改了
因为代码基本上都是gpt写的,实现逻辑一个比一个屎,所以不考虑给官方提pr了
English | 简体中文
Rin is a blog based on Cloudflare Pages + Workers + D1 + R2. It does not require a server to deploy. It can be deployed just with a domain name that resolves to Cloudflare.
- Support GitHub OAuth login. By default, the first logged-in user has management privileges, and other users are ordinary users
- Support article writing and editing
- Support local real-time saving of modifications/edits to any article without interfering between multiple articles
- Support setting it as visible only to yourself, which can serve as a draft box for cloud synchronization or record more private content
- Support dragging/pasting uploaded images to a bucket that supports the S3 protocol and generating links
- Support setting article aliases, and access articles through links such as https://xeu.life/about
- Support articles not being listed in the homepage list
- Support adding links of friends' blog, and the backend regularly checks and updates the accessible status of links every 20 minutes
- Support replying to comment articles/deleting comments
- Support sending comment notifications through Webhook
- Support automatic identification of the first picture in the article and display it as the header image in the article list
- Support inputting tag texts such as "#Blog #Cloudflare" and automatically parsing them into tags
- For more features, please refer to https://xeu.life
MIT License
Copyright (c) 2024 Xeu
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.