From 91f2e4c116f89c1bd26a010805612b82477e9e7c Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Sun, 18 Feb 2024 18:32:48 +0100 Subject: [PATCH] Fix tag filter --- data_src/posts/kde_contribution.md | 4 ++-- data_src/posts/pmbootstrap_custom_build.md | 4 ++-- src/app/pages/posts.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/data_src/posts/kde_contribution.md b/data_src/posts/kde_contribution.md index 527c7ce..bc156c9 100644 --- a/data_src/posts/kde_contribution.md +++ b/data_src/posts/kde_contribution.md @@ -7,8 +7,8 @@ description: Ma première configuration et ma première contribution à l'enviro project_link: none draft: true tags: - - kde - - linux + - KDE + - Linux --- ## Rapide rappel à propos de KDE diff --git a/data_src/posts/pmbootstrap_custom_build.md b/data_src/posts/pmbootstrap_custom_build.md index 67307a5..7bee48a 100644 --- a/data_src/posts/pmbootstrap_custom_build.md +++ b/data_src/posts/pmbootstrap_custom_build.md @@ -7,8 +7,8 @@ description: Installation de pmbootstrap et compilation d'un paquet Postmarket O project_link: none draft: true tags: - - pmOS - - linux + - Postmarket OS + - Linux --- ## À propos de Postmarket OS diff --git a/src/app/pages/posts.rs b/src/app/pages/posts.rs index caf58e3..0c7ecf5 100644 --- a/src/app/pages/posts.rs +++ b/src/app/pages/posts.rs @@ -16,7 +16,7 @@ pub async fn get_posts( let default = vec![]; let posts = match tag { - Some(tag) => data.posts_by_tag.get(&tag).unwrap_or(&default), + Some(tag) => data.posts_by_tag.get(&tag.to_lowercase()).unwrap_or(&default), None => &data.posts };