Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/caomeiyouren/hexo-custom-rss
通过 tag、category 过滤生成的 rss,可自定义路径。Filter the generated RSS through tags and categories, and customize the path
https://github.com/caomeiyouren/hexo-custom-rss
atom hexo nodejs npm-package rss typescript
Last synced: about 4 hours ago
JSON representation
通过 tag、category 过滤生成的 rss,可自定义路径。Filter the generated RSS through tags and categories, and customize the path
- Host: GitHub
- URL: https://github.com/caomeiyouren/hexo-custom-rss
- Owner: CaoMeiYouRen
- License: mit
- Created: 2025-01-13T11:25:49.000Z (7 days ago)
- Default Branch: master
- Last Pushed: 2025-01-13T16:03:54.000Z (7 days ago)
- Last Synced: 2025-01-13T16:37:11.879Z (7 days ago)
- Topics: atom, hexo, nodejs, npm-package, rss, typescript
- Language: TypeScript
- Homepage:
- Size: 118 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
hexo-custom-rss
> 通过 tag、category 过滤生成的 rss,可自定义路径
>
> Filter the generated RSS through tags and categories, and customize the path## 🏠 主页
[https://github.com/CaoMeiYouRen/hexo-custom-rss#readme](https://github.com/CaoMeiYouRen/hexo-custom-rss#readme)
## 📦 依赖要求
- node >=18
## 🚀 安装
```sh
npm install hexo-custom-rss
```## 👨💻 使用
**配置**
在 Hexo 配置文件 _config.yml 中添加或修改以下配置:```yaml
customRss:
enable: true
feeds:
- title: 我的博客 # 标题,默认为博客标题,可在此处修改默认值
description: 这是我的博客 # 描述,默认为博客描述,可在此处修改默认值
tags: # 要包含的标签
- 技术
- 生活
categories: # 要包含的分类
- 编程
path: rss # rss 文件的路径,必填
formats: # 要生成的格式。默认值为 ["rss2"]。假设 path 为 rss,则生成的文件为 public/rss.xml、public/rss.atom 和 public/rss.json
- rss2
- atom
- json
limit: 10 # 要生成的文章数量,默认为 10
content: true # 是否包含文章内容,默认为 true
follow_challenge: # 认证 Follow 订阅源,可选,参考 https://follow.is/ 文档
feedId: your_feed_id
userId: your_user_id
```配置完成后,运行 Hexo 生成器:
```sh
hexo generate
```
生成的 RSS 文件将位于 public/rss.xml、public/rss.atom 和 public/rss.json。**支持的格式**
- RSS 2.0
- Atom
- JSON Feed## 🛠️ 开发
```sh
npm run dev
```## 🔧 编译
```sh
npm run build
```## 🔍 Lint
```sh
npm run lint
```## 💾 Commit
```sh
npm run commit
```## 👤 作者
**CaoMeiYouRen**
* Website: [https://blog.cmyr.ltd/](https://blog.cmyr.ltd/)
* GitHub: [@CaoMeiYouRen](https://github.com/CaoMeiYouRen)
## 🤝 贡献
欢迎 贡献、提问或提出新功能!
如有问题请查看 [issues page](https://github.com/CaoMeiYouRen/hexo-custom-rss/issues).
贡献或提出新功能可以查看[contributing guide](https://github.com/CaoMeiYouRen/hexo-custom-rss/blob/master/CONTRIBUTING.md).## 💰 支持
如果觉得这个项目有用的话请给一颗⭐️,非常感谢
## 🌟 Star History
[![Star History Chart](https://api.star-history.com/svg?repos=CaoMeiYouRen/hexo-custom-rss&type=Date)](https://star-history.com/#CaoMeiYouRen/hexo-custom-rss&Date)
## 📝 License
Copyright © 2025 [CaoMeiYouRen](https://github.com/CaoMeiYouRen).
This project is [MIT](https://github.com/CaoMeiYouRen/hexo-custom-rss/blob/master/LICENSE) licensed.***
_This README was generated with ❤️ by [cmyr-template-cli](https://github.com/CaoMeiYouRen/cmyr-template-cli)_