mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-12 14:07:06 +08:00
fix: 缺省 random
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
let listResult = ""
|
let listResult = ""
|
||||||
const lists = str[i].link_list
|
const lists = str[i].link_list
|
||||||
if (!{page.random}) {
|
if (!{page.random === true}) {
|
||||||
lists.sort(() => Math.random() - 0.5)
|
lists.sort(() => Math.random() - 0.5)
|
||||||
}
|
}
|
||||||
for(let j = 0; j < lists.length; j++){
|
for(let j = 0; j < lists.length; j++){
|
||||||
|
|||||||
Reference in New Issue
Block a user