readme
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import Footer from "@/app/components/Footer";
|
||||
import { blogPosts } from "@/app/data/mock";
|
||||
import { mediaUrl } from "@/app/lib/media";
|
||||
|
||||
export const metadata = {
|
||||
title: "博客 | 游牧中国",
|
||||
@@ -29,7 +30,7 @@ export default function BlogPage() {
|
||||
<div className="grid md:grid-cols-2 gap-0">
|
||||
<div className="aspect-video md:aspect-auto relative">
|
||||
<img
|
||||
src={featuredPost.coverImage}
|
||||
src={mediaUrl(featuredPost.coverImage)}
|
||||
alt={featuredPost.title}
|
||||
className="w-full h-full object-cover"
|
||||
/>
|
||||
@@ -46,7 +47,7 @@ export default function BlogPage() {
|
||||
</p>
|
||||
<div className="flex items-center gap-3 mt-auto">
|
||||
<img
|
||||
src={featuredPost.authorAvatar}
|
||||
src={mediaUrl(featuredPost.authorAvatar)}
|
||||
alt={featuredPost.author}
|
||||
className="w-8 h-8 rounded-full"
|
||||
/>
|
||||
@@ -74,7 +75,7 @@ export default function BlogPage() {
|
||||
>
|
||||
<div className="aspect-video relative">
|
||||
<img
|
||||
src={post.coverImage}
|
||||
src={mediaUrl(post.coverImage)}
|
||||
alt={post.title}
|
||||
className="w-full h-full object-cover"
|
||||
/>
|
||||
@@ -91,7 +92,7 @@ export default function BlogPage() {
|
||||
</p>
|
||||
<div className="flex items-center gap-2">
|
||||
<img
|
||||
src={post.authorAvatar}
|
||||
src={mediaUrl(post.authorAvatar)}
|
||||
alt={post.author}
|
||||
className="w-6 h-6 rounded-full"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user