From 16ae63d0c49966d18d15a794f29b925321f81d34 Mon Sep 17 00:00:00 2001 From: kifuan Date: Sun, 14 May 2023 17:37:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BC=BA=E7=9C=81=20`random`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/includes/page/flink.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/includes/page/flink.pug b/layout/includes/page/flink.pug index c9cbdfa..ee4e1a2 100644 --- a/layout/includes/page/flink.pug +++ b/layout/includes/page/flink.pug @@ -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++){