From f51250941f4425ce4d63b90a266a29e8588a7d03 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Wed, 30 Apr 2025 08:56:43 +0200 Subject: Add tagging to articles --- src/content.config.ts | 1 + src/data/blog/americans-so-much-freedom.md | 1 + src/data/blog/configurar-php-iis.md | 1 + src/data/blog/europa-responder-aranceles.md | 1 + src/data/blog/gobierno-no-aprueba-leyes.md | 1 + src/data/blog/mapa-facil-protomaps.md | 1 + src/data/blog/shitshow-wordpress.md | 1 + src/data/blog/vibe-coding-stop.md | 1 + src/pages/blog/[id].astro | 61 +++++++ src/pages/blog/index.astro | 265 ++++++++++++++++++++++++++-- 10 files changed, 320 insertions(+), 14 deletions(-) (limited to 'src') diff --git a/src/content.config.ts b/src/content.config.ts index 3d69039..a0391a8 100644 --- a/src/content.config.ts +++ b/src/content.config.ts @@ -7,6 +7,7 @@ const blog = defineCollection({ title: z.string(), description: z.string(), publishedAt: z.coerce.date(), + tags: z.array(z.string()).default([]), }), }); diff --git a/src/data/blog/americans-so-much-freedom.md b/src/data/blog/americans-so-much-freedom.md index 0d15709..c576827 100644 --- a/src/data/blog/americans-so-much-freedom.md +++ b/src/data/blog/americans-so-much-freedom.md @@ -2,6 +2,7 @@ title: "Americans: so much for your \"freedom\"" description: "Regarding the \"freedom\" of Americans, the ban of TikTok, and whether Europe should follow suit" publishedAt: 2025-01-17 +tags: ["política", "derecho", "internacional"] ---