Fix tag filter
This commit is contained in:
parent
fb438873d7
commit
91f2e4c116
3 changed files with 5 additions and 5 deletions
|
@ -7,8 +7,8 @@ description: Ma première configuration et ma première contribution à l'enviro
|
||||||
project_link: none
|
project_link: none
|
||||||
draft: true
|
draft: true
|
||||||
tags:
|
tags:
|
||||||
- kde
|
- KDE
|
||||||
- linux
|
- Linux
|
||||||
---
|
---
|
||||||
|
|
||||||
## Rapide rappel à propos de KDE
|
## Rapide rappel à propos de KDE
|
||||||
|
|
|
@ -7,8 +7,8 @@ description: Installation de pmbootstrap et compilation d'un paquet Postmarket O
|
||||||
project_link: none
|
project_link: none
|
||||||
draft: true
|
draft: true
|
||||||
tags:
|
tags:
|
||||||
- pmOS
|
- Postmarket OS
|
||||||
- linux
|
- Linux
|
||||||
---
|
---
|
||||||
|
|
||||||
## À propos de Postmarket OS
|
## À propos de Postmarket OS
|
||||||
|
|
|
@ -16,7 +16,7 @@ pub async fn get_posts(
|
||||||
|
|
||||||
let default = vec![];
|
let default = vec![];
|
||||||
let posts = match tag {
|
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
|
None => &data.posts
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue