From c8ba70fb3ad8f0432b9276d2c2495b221ef6464e Mon Sep 17 00:00:00 2001 From: Liboq <2661158759@qq.com> Date: Fri, 4 Aug 2023 13:53:23 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9Aexample=20=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/example/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/themes/example/index.js b/themes/example/index.js index 734549f2..b32046ff 100644 --- a/themes/example/index.js +++ b/themes/example/index.js @@ -123,11 +123,14 @@ const LayoutIndex = props => { const LayoutPostList = props => { const { category, tag } = props // 顶部如果是按照分类或标签查看文章列表,列表顶部嵌入一个横幅 + // 如果是搜索,则列表顶部嵌入 搜索框 let slotTop = null if (category) { slotTop =
{category}
} else if (tag) { slotTop =
#{tag}
+ }else if(props.slotTop){ + slotTop = props.slotTop } return (