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