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 (