fix(blog): card item href
This commit is contained in:
parent
5762712c49
commit
6d3dd6b542
@ -23,13 +23,13 @@ export function BlogCardItem({ data }: BlogCardItemProps) {
|
|||||||
<div className="post-prev-3 col-12 col-lg-10 offset-lg-1 col-xl-6 offset-xl-0 mt-50">
|
<div className="post-prev-3 col-12 col-lg-10 offset-lg-1 col-xl-6 offset-xl-0 mt-50">
|
||||||
<div className="post-prev-3-container d-block d-sm-flex">
|
<div className="post-prev-3-container d-block d-sm-flex">
|
||||||
<div className="post-prev-3-img">
|
<div className="post-prev-3-img">
|
||||||
<Link href={`/blog/${data.slug}`}>
|
<a href={`/blog/${data.slug}`}>
|
||||||
<Image width={400} height={488} src={data?.img?.url ?? ""} alt={data?.img?.alt ?? ""} />
|
<Image width={400} height={488} src={data?.img?.url ?? ""} alt={data?.img?.alt ?? ""} />
|
||||||
</Link>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div className="post-prev-3-intro">
|
<div className="post-prev-3-intro">
|
||||||
<h4 className="post-prev-3-title">
|
<h4 className="post-prev-3-title">
|
||||||
<Link href={`/blog/${data.slug}`}>{data.title}</Link>
|
<a href={`/blog/${data.slug}`}>{data.title}</a>
|
||||||
</h4>
|
</h4>
|
||||||
<div className="post-prev-3-text">{data.contentPreview}</div>
|
<div className="post-prev-3-text">{data.contentPreview}</div>
|
||||||
<div className="post-prev-3-info clearfix">
|
<div className="post-prev-3-info clearfix">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user