Adding the new Tag nav and selector to the pages.
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "bard"
|
||||
version = "0.0.19"
|
||||
version = "0.0.20"
|
||||
edition = "2024"
|
||||
description = "Dioxus components that will display a Tavern blogging system Blog."
|
||||
repository = "/CyberMages/tavern"
|
||||
|
||||
@ -2,7 +2,7 @@ use std::collections::HashSet;
|
||||
|
||||
use dioxus::prelude::*;
|
||||
|
||||
use crate::components::BlogList;
|
||||
use crate::components::{BlogList, TagSelector};
|
||||
use crate::page::Page;
|
||||
|
||||
|
||||
@ -51,6 +51,11 @@ pub fn Blog(tag: String) -> Element
|
||||
{
|
||||
tags: categories
|
||||
}
|
||||
|
||||
TagSelector
|
||||
{
|
||||
toggled_tags: categories
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
use dioxus::prelude::*;
|
||||
|
||||
use crate::components::BlogPost;
|
||||
use crate::components::{BlogPost, TagNav};
|
||||
use crate::page::Page;
|
||||
|
||||
|
||||
@ -35,6 +35,8 @@ pub fn Post(slug: String) -> Element
|
||||
{
|
||||
slug: url_slug
|
||||
}
|
||||
|
||||
TagNav { }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user