@@ -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);