mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-01 15:10:14 +00:00
Matery - BlogCard
This commit is contained in:
@@ -6,14 +6,14 @@ import BlogPostCard from './BlogPostCard'
|
|||||||
* @param {prev,next} param0
|
* @param {prev,next} param0
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
export default function ArticleAdjacent ({ prev, next }) {
|
export default function ArticleAdjacent ({ prev, next, siteInfo }) {
|
||||||
if (!prev || !next || !CONFIG_MATERY.ARTICLE_ADJACENT) {
|
if (!prev || !next || !CONFIG_MATERY.ARTICLE_ADJACENT) {
|
||||||
return <></>
|
return <></>
|
||||||
}
|
}
|
||||||
return <section className='flex flex-col justify-between p-3 text-gray-800 items-center text-xs md:text-sm md:flex-row md:gap-2 '>
|
return <section className='flex flex-col justify-between p-3 text-gray-800 items-center text-xs md:text-sm md:flex-row md:gap-2 '>
|
||||||
|
|
||||||
<BlogPostCard post={prev}/>
|
<BlogPostCard post={prev} siteInfo={siteInfo}/>
|
||||||
<BlogPostCard post={next}/>
|
<BlogPostCard post={next} siteInfo={siteInfo}/>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ const BlogPostCard = ({ post, showSummary }) => {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default BlogPostCard
|
export default BlogPostCard
|
||||||
|
|||||||
Reference in New Issue
Block a user