Config-Hexo


Summary

修改Recent_Post 的数量

node_modules/hexo-component-inferno/lib/view/widget/recent_posts.js
1
2
3
4
5
6
7
8
9
10
11
12
13
var site = props.site,
helper = props.helper,
_props$limit = props.limit,
- limit = _props$limit === void 0 ? 5 : _props$limit;
+ limit = _props$limit === void 0 ? 4 : _props$limit;
var url_for = helper.url_for,
__ = helper.__,
date_xml = helper.date_xml,
date = helper.date;

if (!site.posts.length) {
return null;
}

Junzhuo Zhou

HaoYu lab, SUSTech