Skip to content

Instantly share code, notes, and snippets.

var Post = hexo.database.model('Post');
hexo.extend.tag.register('monthly_post_list', function(args) {
var dateStr = args[0];
var tag = args[1] || null;
var startDate, endDate;
if(dateStr.length <= 2) {
startDate = new Date();
startDate.setMonth( parseInt(dateStr, 10)-1, 1);
*{
font-family:"Trebuchet MS","Segoe UI","Arial","Serif" !important;
color:#333 !important;
}
body{background:none !important; background-color:#fff !important;}
.bar {border:none !important; background:none !important;background-color:#C8DCF5 !important;}
.subscribebar, .subscribebar a:link, .subscribebar a:visited { color:#fff !important; }
.control, .control a:link,.control a:visited {color:#fff !important;}
a,a:link,a:visited{
text-decoration:none !important;