Publishes Done With Crypto

This commit is contained in:
2026-05-11 14:41:05 -07:00
parent 8066b04b36
commit 3c87527dac
2 changed files with 67 additions and 1 deletions

View File

@@ -18,5 +18,9 @@ export async function getPublishedPosts(
export async function getAllTags(): Promise<string[]> {
const posts = await getCollection("blog", publishedOnly);
return posts.flatMap((p) => p.data.tags || []);
return Object.keys(
Object.fromEntries(
posts.flatMap((p) => p.data.tags || []).map((t) => [t, 1]),
),
);
}