Skip to content

Commit

Permalink
/posts/page/x page
Browse files Browse the repository at this point in the history
  • Loading branch information
GraemeFulton committed Jan 31, 2024
1 parent 51a091a commit b0e417b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/v4/section/PostsSectionHero.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const PostsSectionHero = ({user, heroCardPost, viewablePosts, jobsSidebar,title,
<Container maxWidth="max-w-[1320px]">
{showRecent &&
<>
<div className="w-full shadow-md h-full grid grid-cols-12 flex justify-center bg-white rounded-3xl p-6 lg:p-6">
<div className="w-full shadow-md h-full grid grid-cols-12 flex justify-center bg-white rounded-3xl p-6 mt-6 lg:p-6">
<div className={`w-full max-w-full flex flex-col gap-2 col-span-12 `}>
<PostsGridHero title={title} largePost={heroCardPost} smallPosts={viewablePosts} />
</div>
Expand Down
2 changes: 2 additions & 0 deletions pages/posts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,15 @@ export default function PostsPage({ allPosts = [], preview, pagination = {} }) {
{pagination.page && pagination.page == 1
? morePosts.length > 0 &&
<PostsSectionHero
showRecent={true}
user={user}
heroCardPost={heroPost}
viewablePosts={morePosts}
/>

: allPosts.length > 0 &&
<PostsSectionHero
showRecent={true}
user={user}
heroCardPost={heroPost}
viewablePosts={morePosts}
Expand Down

0 comments on commit b0e417b

Please sign in to comment.