2020-03-13 19:26:09 +08:00
|
|
|
|
console.log('this is main.js');
|
2020-03-15 15:45:38 +08:00
|
|
|
|
(() => {
|
|
|
|
|
// 选择分页器元素里面的 a 标签,但不包含 .page-number,给指定元素追加类 btn 和 设置属性 role=navigation
|
|
|
|
|
document.querySelectorAll('.article-post .paginator a:not(.page-number)').forEach(e => {
|
|
|
|
|
e.classList.add('btn');
|
|
|
|
|
e.setAttribute('role', 'navigation');
|
|
|
|
|
});
|
2020-03-17 17:58:18 +08:00
|
|
|
|
})();
|
|
|
|
|
|
|
|
|
|
// app.locals.structureArchiveList = function (posts) {
|
|
|
|
|
// posts.forEach(post => {
|
|
|
|
|
// console.log('post: ', post);
|
|
|
|
|
// });
|
|
|
|
|
// };
|