RSS

额外依赖项

此导入器需要以下额外库文件。

可以通过运行 gem install GEM_NAME 分别安装所需的 gem,或者使用下面这条命令一次性全部安装: gem install rss safe_yaml

调用方式

调用导入器的示例命令:

jekyll-import rss --source NAME --tag NAME --extract_tags KEY --render_audio --canonical_link
选项 <PARAM> 说明
--source NAME

The RSS file or URL to import.

--tag NAME

Add a specific tag to all posts.

--extract_tags KEY

Copies tags from the given subfield on the RSS <item> to front matter.

默认值:  null
--render_audio

Render <audio> element in posts for the enclosure URLs.

默认值:  false
--canonical_link

Add original link as canonical_url to post front matter.

默认值:  false

*上方表格中高亮的行表示必填选项。

注意: tagextract_tags 是互斥选项,不能同时提供。

查看源码 →