Skip to content

通过 tag、category 过滤生成的 rss,可自定义路径。Filter the generated RSS through tags and categories, and customize the path

License

Notifications You must be signed in to change notification settings

CaoMeiYouRen/hexo-custom-rss

Folders and files

NameName
Last commit message
Last commit date
Jan 16, 2025
Jan 13, 2025
Jan 16, 2025
Jan 16, 2025
Jan 13, 2025
Jan 13, 2025
Jan 13, 2025
Jan 16, 2025
Jan 13, 2025
Jan 13, 2025
Jan 13, 2025
Jan 16, 2025
Jan 13, 2025
Jan 13, 2025
Jan 13, 2025
Jan 13, 2025
Jan 13, 2025
Feb 11, 2025
Feb 11, 2025
Jan 13, 2025
Jan 13, 2025
Jan 16, 2025

Repository files navigation

hexo-custom-rss

Version npm downloads Version GitHub Workflow Status Documentation Maintenance License: MIT

通过 tag、category 过滤生成的 rss,可自定义路径

Filter the generated RSS through tags and categories, and customize the path

🏠 主页

https://github.com/CaoMeiYouRen/hexo-custom-rss#readme

📦 依赖要求

  • node >=18

🚀 安装

npm install hexo-custom-rss

👨‍💻 使用

配置 在 Hexo 配置文件 _config.yml 中添加或修改以下配置:

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 生成器:

hexo generate

生成的 RSS 文件将位于 public/rss.xml、public/rss.atom 和 public/rss.json。

支持的格式

  • RSS 2.0
  • Atom
  • JSON Feed

🛠️ 开发

npm run dev

🔧 编译

npm run build

🔍 Lint

npm run lint

💾 Commit

npm run commit

👤 作者

CaoMeiYouRen

🤝 贡献

欢迎 贡献、提问或提出新功能!
如有问题请查看 issues page.
贡献或提出新功能可以查看contributing guide.

💰 支持

如果觉得这个项目有用的话请给一颗⭐️,非常感谢

在爱发电支持我

🌟 Star History

Star History Chart

📝 License

Copyright © 2025 CaoMeiYouRen.
This project is MIT licensed.


This README was generated with ❤️ by cmyr-template-cli

About

通过 tag、category 过滤生成的 rss,可自定义路径。Filter the generated RSS through tags and categories, and customize the path

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published