diff --git a/pages/blog.vue b/pages/blog.vue index 89230df..32ce27c 100644 --- a/pages/blog.vue +++ b/pages/blog.vue @@ -9,6 +9,14 @@ const docs = await queryContent("/blog") .sort({ date: -1 }) .where({ _draft: false }) .find(); + +const tags = new Set( + docs + .map((p) => p.tags) + .flat() + .filter((p) => !p.includes(" ")) + .sort() +);