diff --git a/app/admin/page.tsx b/app/admin/page.tsx index 7cbe72b..3ebc693 100644 --- a/app/admin/page.tsx +++ b/app/admin/page.tsx @@ -1,5 +1,6 @@ 'use client'; +import Link from 'next/link'; import { useEffect, useState } from "react" import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card" import { Button } from "@/components/ui/button" @@ -52,7 +53,7 @@ export default function Home() { setPostCardLoading(false); throw new Error(strings.errorsUnknownError); } - } else if (data.count) { + } else if (data.count || data.count === 0) { console.log(strings.logsTotalPosts, data.count); setTotalPosts(data.count); setPostCardLoading(false); @@ -166,10 +167,10 @@ export default function Home() { diff --git a/app/posts/[slug]/page.tsx b/app/posts/[slug]/page.tsx index cbbe883..2e83a55 100644 --- a/app/posts/[slug]/page.tsx +++ b/app/posts/[slug]/page.tsx @@ -109,7 +109,7 @@ export default function PostPage() { return (
-

{postTitle}

+

{postTitle}

{strings.postPublishedOnLabel} {postDate}

diff --git a/bun.lockb b/bun.lockb index 94d963f..ee6f3df 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/server/setup.js b/server/setup.js index 7c74ddc..ceb0603 100644 --- a/server/setup.js +++ b/server/setup.js @@ -109,9 +109,10 @@ figlet('BlogPop', (err, data) => { console.log("┌────────────────────────────────────────────────────┐"); console.log("│ ✓ SETUP COMPLETE │"); - console.log("├──────────────┬─────────────────────────────────────┤"); - console.log("│ START SERVER │ $ node index.js │"); - console.log("└──────────────┴─────────────────────────────────────┘") + console.log("├─────────────────────┬──────────────────────────────┤"); + console.log("│ START SERVER (NODE) │ $ node index.js │"); + console.log("│ START SERVER (BUN) │ $ bun index.js │") + console.log("└─────────────────────┴──────────────────────────────┘") db.close(); rl.close(); diff --git a/strings.json b/strings.json index 31fca14..95f080d 100644 --- a/strings.json +++ b/strings.json @@ -36,7 +36,7 @@ "newPostTitleFieldPlaceholder": "Enter post title", "newPostDescriptionFieldPlaceholder": "Enter post description", "newPostCategoryFieldPlaceholder": "Select a category", - "newPostSlugFieldPlaceholder": "Enter post slug (i.e. /example-slug)", + "newPostSlugFieldPlaceholder": "Enter post slug (ex: inputting example will create a post at example.com/posts/example)", "newUserNameFieldLabel": "Name", "newUserEmailFieldLabel": "Email",