diff --git a/src/app/(routes)/blog/posts/[postSlug]/page.tsx b/src/app/(routes)/blog/posts/[postSlug]/page.tsx index aeb6e99..fc81b9e 100644 --- a/src/app/(routes)/blog/posts/[postSlug]/page.tsx +++ b/src/app/(routes)/blog/posts/[postSlug]/page.tsx @@ -1,4 +1,8 @@ -import { PostSlugPagePostType, PostSlugPagepropsType } from "@/app/types/types"; +import { + PostSlugPagePostType, + PostSlugPagepropsType, + PostType, +} from "@/app/types/types"; import { Metadata } from "next"; import Image from "next/image"; import Link from "next/link"; @@ -109,7 +113,7 @@ export default async function SinglePost({ params }: PostSlugPagepropsType) { -
+
+
+
+ {"post +
+
+ {"post +
+
+

+ “ WP Page Builder offers a lot of ready-to-use design blocks to + make your site development process a lot faster and easier “ +

+
+
+ {"user + + parsa aghayi + +

+ Follow me + + @parsaaghayi + + . +

+
+
+
+ +
+
+ socials-vertical icons +

+ {postData.post.likes} +

+
+
+ socials-vertical icons +

+ {postData.post.views} +

+
+
+
+ +
+
+

+ You might also like... +

+ {/* + more + */} +
+
+ {postData.related_posts.map( + (relatedPost: PostType, key: number) => { + if (key < 2) { + return ( +
+ {`${relatedPost.title} +
+
+

+ BY +

+ + {relatedPost.author.name} + +
+
+

+ IN +

+ + {relatedPost.category.name} + +
+
+ + {relatedPost.title} + +

+ {relatedPost.excerpt} +

+
+ ); + } + }, + )}