Comparing to traditional blogroll, this plugin fetches latest articles from blog feed and sorts blogs by the latest update date.
npm install hexo-blogroll --save
Create a blogroll.json
file and put it into source/_data
{
"blogs": [
{
"title": "Another blog",
"feed": "https://another.blog/feed"
},
{
"title": "Yet another blog",
"feed": "https://yet.another.blog./feed"
}
]
}
Create a hexo page and insert the blogroll
tag as follows.
5 means for each blog, only the 5 latest posts are displayed.
---
title: Blogroll
---
Latest artciles of my favorite blogs updated by [hexo-blogroll](https://github.com/huiwang/hexo-blogroll)
{% blogroll 5 %}