修复:nobelium主题公告置顶展示

This commit is contained in:
hjwucc
2023-07-22 00:59:02 +08:00
parent 3d2db37d06
commit 10c69f63a0

View File

@@ -101,7 +101,7 @@ const LayoutIndex = props => {
* @returns
*/
const LayoutPostList = props => {
const { posts } = props
const { posts, topSlot } = props
// 在列表中进行实时过滤
const [filterKey, setFilterKey] = useState('')
@@ -118,6 +118,7 @@ const LayoutPostList = props => {
return (
<LayoutBase {...props} topSlot={<BlogListBar {...props} setFilterKey={setFilterKey} />}>
{topSlot}
{BLOG.POST_LIST_STYLE === 'page' ? <BlogListPage {...props} posts={filteredBlogPosts} /> : <BlogListScroll {...props} posts={filteredBlogPosts} />}
</LayoutBase>
)