aboutsummaryrefslogtreecommitdiff
path: root/src/layouts/BlogListLayout.astro
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-12-13 13:17:00 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2025-12-13 13:17:00 +0100
commitabe4cacf174b7c1b9118f43b55222763868a1ff7 (patch)
treed0b3ed4f31cadec6921d5a9c5c78b9345e87bd98 /src/layouts/BlogListLayout.astro
parent1db44ca4d01d8180a1adaf69f2f0f9a1ce953221 (diff)
New post, fix issues
Diffstat (limited to 'src/layouts/BlogListLayout.astro')
-rw-r--r--src/layouts/BlogListLayout.astro9
1 files changed, 6 insertions, 3 deletions
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 = {
<div class="tags-container">
<h2>Etiquetas</h2>
<div class="tag-filter">
- <button class="tag-button active" data-tag="all">Todas</button>
+ <button class="tag-button active" data-tag="all">todas</button>
{allTags.map((tag) => (
<button class="tag-button" data-tag={tag}>{tag}</button>
))}
@@ -238,7 +241,7 @@ const schema = {
margin-bottom: 1rem;
}
- > p {
+ p {
line-height: 1.7;
margin-bottom: 2rem;
}