Fix tag filter

This commit is contained in:
Florian RICHER 2024-02-18 18:32:48 +01:00
parent fb438873d7
commit 91f2e4c116
3 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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

View file

@ -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
};