LiuShen / 友链friend.json生成新方式
0 gustos
0 bifurcaciones
1 archivos
Última actividad
1 | const blacklist = ["友站名称1", "友站名称2", "友站名称3"]; |
2 | const path = "friend.json"; |
3 | |
4 | function genFriendJSON(locals) { |
5 | var friends = []; |
6 | var data = locals.data.link; |
7 | data.forEach((entry, index) => { |
8 | let lastIndex = 2; |
9 | if (index < lastIndex) { |
10 | const filteredLinkList = entry.link_list.filter( |
Siguiente
Anterior