From 32e0c16bed4ad5bd7c45365a25e125cab6c946f8 Mon Sep 17 00:00:00 2001 From: qianmoQ Date: Fri, 21 Feb 2025 19:18:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=20banner=20=E5=A4=9A?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/includes/header-banner.ejs | 56 ++++++++++++++++++++++++++-- 1 file changed, 53 insertions(+), 3 deletions(-) diff --git a/templates/includes/header-banner.ejs b/templates/includes/header-banner.ejs index 57fa938..3808f98 100644 --- a/templates/includes/header-banner.ejs +++ b/templates/includes/header-banner.ejs @@ -1,9 +1,59 @@ <% if (locals.siteData?.banner?.content) { %>
-
- <%- locals.siteData.banner.content %> -
+ <% if (Array.isArray(locals.siteData.banner.content)) { %> + + + + + + + + + <% } else { %> +
+ <%- locals.siteData.banner.content %> +
+ <% } %>