Add all tags in posts #2
This commit is contained in:
parent
0436136cdd
commit
2789edc0d6
1 changed files with 4 additions and 5 deletions
|
@ -152,14 +152,12 @@ pub fn PostList() -> impl IntoView {
|
||||||
match tag() {
|
match tag() {
|
||||||
Some(tag) => {
|
Some(tag) => {
|
||||||
view! {
|
view! {
|
||||||
<A class="tag" href="/posts".to_string()>{tag}<leptos_icons::Icon icon=icondata::IoClose class="scale-125 ml-1 inline" /></A>
|
<><A class="tag" href="/posts".to_string()>{tag}<leptos_icons::Icon icon=icondata::IoClose class="scale-125 ml-1 inline" /></A></>
|
||||||
}.into_view()
|
}.into_view()
|
||||||
},
|
},
|
||||||
None => {
|
None => {
|
||||||
view! {
|
view! {
|
||||||
<div class="flex flex-wrap gap-2">
|
<>{tags_view}</>
|
||||||
{tags_view}
|
|
||||||
</div>
|
|
||||||
}.into_view()
|
}.into_view()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -168,7 +166,8 @@ pub fn PostList() -> impl IntoView {
|
||||||
view! {
|
view! {
|
||||||
<Suspense fallback=move || view! { <Loading title="Chargement des posts...".to_string() /> }>
|
<Suspense fallback=move || view! { <Loading title="Chargement des posts...".to_string() /> }>
|
||||||
<Nav/>
|
<Nav/>
|
||||||
<div class="mx-auto max-w-3xl mb-5">
|
<div class="mx-auto max-w-3xl mb-5 flex flex-wrap gap-2">
|
||||||
|
<span>Filtre : </span>
|
||||||
{filter_view}
|
{filter_view}
|
||||||
</div>
|
</div>
|
||||||
<main class="posts">
|
<main class="posts">
|
||||||
|
|
Loading…
Reference in a new issue