将hexo静态博客next主题安装rss插件功能

in #cn7 years ago

hexo静态博客,实现rss功能方法,本站亲测可用。

(html comment removed: more )

安装插件

  • 进入本地hexo目录
  • 打开gitbash。输入以下命令
npm install hexo-generator-feed

修改站点配置

-在本地hexo根目录下的_config.yml文件中,添加以下配置。

# Extensions
## Plugins: http://hexo.io/plugins/
#RSS订阅
plugin:
- hexo-generator-feed
#Feed Atom
feed:
type: atom
path: atom.xml
limit: 20

修改主题配置,添加如下配置

rss: /atom.xml

参考文献

Sort:  

Congratulations @greedyboy! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

You made your First Comment

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

Upvote this notification to help all Steemit users. Learn why here!

新人啊,难不成是从我博客看过来的?

是的,太准了,偶然机会从gitee封面人物看到你,然后就走进了你的博客,再然后就被你点燃了n年之前的一腔热血,再然后就来了。恰似你年少时的我还浑浑噩噩没有开化,而如今虽早已迈而立之年,却还不似你般明朗、执着、坚毅。惭愧惭愧。

每个人都不一样,走过不一样的路。不管怎样,欢迎来到 Steemit!

Coin Marketplace

STEEM 0.23
TRX 0.26
JST 0.040
BTC 98185.12
ETH 3486.20
USDT 1.00
SBD 3.27