Новые правки в компонете
This commit is contained in:
parent
c369cd30bd
commit
bccd6310b3
1 changed files with 2 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ import Pagination from '@components/base/Pagination.astro';
|
|||
import SearchModal from '@components/base/SearchModal.astro';
|
||||
import { getPosts, getAllCategories, getPostImageUrl } from '@lib/pb';
|
||||
|
||||
const POSTS_PER_PAGE = 12;
|
||||
const POSTS_PER_PAGE = 6;
|
||||
const currentPage = 1;
|
||||
|
||||
const { posts, total, totalPages } = await getPosts({ page: currentPage, perPage: POSTS_PER_PAGE });
|
||||
|
|
@ -85,7 +85,7 @@ const formatDate = (date: string) => {
|
|||
|
||||
<style>
|
||||
.blog-grid-section {
|
||||
padding: 3rem 0 0;
|
||||
padding: 2rem 0 0;
|
||||
background: #f8fafc;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue