From 67eeab130d3de2e821e6acfb53815406cc421acc Mon Sep 17 00:00:00 2001 From: cellargalaxy Date: Sun, 19 Nov 2023 16:34:03 +0800 Subject: [PATCH] 1 --- layout/index.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/index.ejs b/layout/index.ejs index 86fc6ec6..f47e2df6 100644 --- a/layout/index.ejs +++ b/layout/index.ejs @@ -18,7 +18,7 @@ function hash(text) { } page.banner_group = page.banner_group || theme.index.banner_group if (Array.isArray(page.banner_group) && page.banner_group.length) { - var index = hash(page.subtitle || page.title) % page.banner_group.length + var index = 0 page.banner_img = page.banner_group[index].img || page.banner_img page.banner_text = page.banner_group[index].text || page.subtitle || page.title page.banner_img_height = parseFloat(page.banner_group[index].height || 100)