Halo 2.0 的 RSS 订阅链接生成插件
git clone git@github.com:halo-dev/plugin-feed.git
# 或者当你 fork 之后
git clone git@github.com:{your_github_id}/plugin-feed.git
cd path/to/plugin-feed
# macOS / Linux
./gradlew build
# Windows
./gradlew.bat build
修改 Halo 配置文件:
halo:
plugin:
runtime-mode: development
classes-directories:
- "build/classes"
- "build/resources"
lib-directories:
- "libs"
fixedPluginPath:
- "/path/to/plugin-feed"
目前提供了以下订阅链接类型:
/feed.xml
或者 /rss.xml
/feed/categories/{slug}.xml
/feed/authors/{name}.xml