diff --git a/src/components/community/CommunityCard.tsx b/src/components/community/CommunityCard.tsx index 32bb75c..786bde4 100644 --- a/src/components/community/CommunityCard.tsx +++ b/src/components/community/CommunityCard.tsx @@ -12,16 +12,25 @@ export default function CommunityCard({ post }: Props) { {post.image ? ( - {post.title} + {post.title} ) : ( -
No Image
+
+ No Image +
)}

{post.title}

{post.description}

{post.tags?.map((t) => ( - + {t} ))} diff --git a/src/data.ts b/src/data.ts index ec86b62..401307a 100644 --- a/src/data.ts +++ b/src/data.ts @@ -138,10 +138,7 @@ const mcProjects = [ }, ], downloads: "2.0M+", - imgs: [ - "/assets/mcProjs/tc.webp", - "/assets/mcProjs/tc/maxresdefault.webp", - ], + imgs: ["/assets/mcProjs/tc.webp", "/assets/mcProjs/tc/maxresdefault.webp"], }, { title: "Scary Myth Mobs", @@ -360,9 +357,7 @@ const mcProjects = [ link: "https://www.minecraft.net/en-us/marketplace/pdp?id=47c862c8-98c1-497c-94a5-3959eea3fec5", }, ], - imgs: [ - "/assets/mcProjs/dl/Demonic_Legends_Thumbnail.webp", - ], + imgs: ["/assets/mcProjs/dl/Demonic_Legends_Thumbnail.webp"], }, { title: "Fright Night", @@ -375,9 +370,7 @@ const mcProjects = [ link: "https://www.minecraft.net/en-us/marketplace/pdp?id=7ddad910-7c39-46c0-8e6d-8ed38f870d04", }, ], - imgs: [ - "/assets/mcProjs/fn/FrightNight_Thumbnail.webp", - ], + imgs: ["/assets/mcProjs/fn/FrightNight_Thumbnail.webp"], }, ]; @@ -452,9 +445,7 @@ const Projects = [ link: "https://wiki.bedrock.dev/", }, ], - imgs: [ - "/assets/Projs/wiki/wiki.webp", - ], + imgs: ["/assets/Projs/wiki/wiki.webp"], tags: ["Documentation", "Minecraft", "Community", "Education"], status: "Live", featured: false, @@ -475,9 +466,7 @@ const Projects = [ link: "https://today-notes.keyyard.xyz", }, ], - imgs: [ - "assets/Projs/today/4.webp", - ], + imgs: ["assets/Projs/today/4.webp"], tags: ["React", "PWA", "TypeScript", "Productivity"], status: "Inactive", featured: false, diff --git a/src/pages/community/[slug].tsx b/src/pages/community/[slug].tsx index e3a8160..4154050 100644 --- a/src/pages/community/[slug].tsx +++ b/src/pages/community/[slug].tsx @@ -28,24 +28,41 @@ export default function CommunityPost({ post }: any) {

{meta.title}

{meta.date}

- {meta.image ? {meta.title} : null} + {meta.image ? ( + {meta.title} + ) : null}
{meta.tags?.map((t: string) => ( - + {t} ))}
{meta.download ? ( - + Download ) : null}
-
+
diff --git a/src/pages/community/index.tsx b/src/pages/community/index.tsx index 01310e3..90749b8 100644 --- a/src/pages/community/index.tsx +++ b/src/pages/community/index.tsx @@ -29,7 +29,8 @@ export default function CommunityIndex({ posts }: { posts: any[] }) { const filtered = posts.filter((p: any) => { if (filter && !(p.tags || []).includes(filter)) return false; - if (q && !(p.title + p.description).toLowerCase().includes(q.toLowerCase())) return false; + if (q && !(p.title + p.description).toLowerCase().includes(q.toLowerCase())) + return false; return true; }); @@ -37,12 +38,19 @@ export default function CommunityIndex({ posts }: { posts: any[] }) { <> Community — Keyyard - +

Community

-

Free community projects, tools, and downloads.

+

+ Free community projects, tools, and downloads. +

@@ -55,14 +63,16 @@ export default function CommunityIndex({ posts }: { posts: any[] }) {
{tags.map((t) => ( ))} diff --git a/src/utils/markdown.ts b/src/utils/markdown.ts index fcc5c77..dab5f62 100644 --- a/src/utils/markdown.ts +++ b/src/utils/markdown.ts @@ -60,10 +60,7 @@ export async function getAllCommunityPosts(): Promise { } export async function getCommunityPost(slug: string) { - const filenameCandidates = [ - `${slug}.md`, - path.join(slug, "index.md"), - ]; + const filenameCandidates = [`${slug}.md`, path.join(slug, "index.md")]; for (const candidate of filenameCandidates) { const full = path.join(CONTENT_PATH, candidate);