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
|
||||
draft: true
|
||||
tags:
|
||||
- kde
|
||||
- linux
|
||||
- KDE
|
||||
- Linux
|
||||
---
|
||||
|
||||
## Rapide rappel à propos de KDE
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue