Merge pull request #1302 from hjwucc/test

修复:nobelium主题公告置顶展示
This commit is contained in:
tangly1024
2023-07-23 22:03:53 +08:00
committed by GitHub

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>
)