From abe4cacf174b7c1b9118f43b55222763868a1ff7 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Sat, 13 Dec 2025 13:17:00 +0100 Subject: New post, fix issues --- src/layouts/BlogListLayout.astro | 9 ++++++--- src/layouts/Layout.astro | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'src/layouts') diff --git a/src/layouts/BlogListLayout.astro b/src/layouts/BlogListLayout.astro index 4529e33..dbc7f34 100644 --- a/src/layouts/BlogListLayout.astro +++ b/src/layouts/BlogListLayout.astro @@ -22,7 +22,10 @@ const groupedPosts = blogCollection.reduce( ); // Colección de todas las etiquetas únicas -const allTags = [...new Set(blogCollection.flatMap(post => post.data.tags || []))].sort(); +const allTags = [...new Set(blogCollection + .flatMap(post => post.data.tags || []) + .map(t => t.trim().toLowerCase())) +].sort(); function humaniseDate(date: Date) { const result = date.toLocaleDateString("es-ES", { @@ -74,7 +77,7 @@ const schema = {

Etiquetas

- + {allTags.map((tag) => ( ))} @@ -238,7 +241,7 @@ const schema = { margin-bottom: 1rem; } - > p { + p { line-height: 1.7; margin-bottom: 2rem; } diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 46720ba..e7b84ce 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -163,7 +163,7 @@ const { title, description, empty } = Astro.props; padding-block-end: 3rem; - > p > code { + p > code { word-break: break-word; font-family: $monoFontStack; -- cgit v1.3