We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1e8f58 commit 70d659cCopy full SHA for 70d659c
1 file changed
src/routes/Feed/PostList/PostCard.tsx
@@ -1,6 +1,7 @@
1
import Link from "next/link"
2
import { CONFIG } from "site.config"
3
import { formatDate } from "src/libs/utils"
4
+import { withBasePath } from "src/libs/utils/assetPath"
5
import Tag from "../../../components/Tag"
6
import { TPost } from "../../../types"
7
import Image from "next/image"
@@ -25,7 +26,7 @@ const PostCard: React.FC<Props> = ({ data }) => {
25
26
{data.thumbnail && (
27
<div className="thumbnail">
28
<Image
- src={data.thumbnail}
29
+ src={withBasePath(data.thumbnail)}
30
fill
31
alt={data.title}
32
css={{ objectFit: "cover" }}
0 commit comments