fukasawa 文章列表样式

This commit is contained in:
tangly1024
2022-03-17 16:22:55 +08:00
parent 02f56583ae
commit 17fb0c7afe

View File

@@ -15,7 +15,7 @@ import PaginationSimple from './PaginationSimple'
const BlogListPage = ({ page = 1, posts = [], postCount }) => {
const totalPage = Math.ceil(postCount / BLOG.POSTS_PER_PAGE)
const showNext = page < totalPage && posts.length === BLOG.POSTS_PER_PAGE && posts.length < postCount
const [colCount, changeCol] = useState(3)
const [colCount, changeCol] = useState(1)
function updateCol () {
if (window.outerWidth > 1200) {