Skip to content

Commit

Permalink
Update moments.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Zfour authored Mar 5, 2021
1 parent e832f6a commit 7f90169
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions moments.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ let slice_month = (data) => {
};

//处理数据
let data_handle = (data, maxnumber) => {
let data_handle = (nofollow,data, maxnumber) => {
let today = todaypost();
let Datetody = new Date(today);
for (let item = 0; item < data[1].length; item++) {
Expand Down Expand Up @@ -154,7 +154,7 @@ let data_handle = (data, maxnumber) => {
for (let month_item of datalist_slice) {
html_item += '<h2>' + month_item[0] + '</h2>';
for (let post_item of month_item[1]) {
var rel = '';
let rel = '';
if (nofollow && opentype == '_blank'){
rel = 'noopener nofollow';
}else if(nofollow){
Expand Down Expand Up @@ -188,7 +188,7 @@ let data_handle = (data, maxnumber) => {
).then(
data => {
orign_data = data;
data_handle(orign_data, maxnumber)
data_handle(nofollow,orign_data, maxnumber)
}
)
}
Expand Down

1 comment on commit 7f90169

@vercel
Copy link

@vercel vercel bot commented on 7f90169 Mar 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.