在instafeed.js中,我sortBy
可以通过most-liked
或标记图片most-recent
。这些选项是相互排斥的。我试图找到一个中间立场来做这两件事。我想排序most-recent
,然后显示那些有likes > x amount
. 如何在 instafeed.js 中实现这一点?
var feed = new Instafeed({
target: 'instafeed',
get: 'tagged',
tagName: 'dog',
limit: '10',
sortBy: 'most-recent',
resolution: 'standard_resolution',
clientId: 'xxxxx',
template:'<div class="tile"><div class="text"><b>{{likes}} ♥ </b>{{model.user.full_name}}</div><img class="item" src="{{image}}"></div>',
filter: function(image) {
//filter for recent images with most like
}
});