Compare commits
2 Commits
ceec758be5
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| afef66d424 | |||
| 6708636ec2 |
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "bard"
|
||||
version = "0.3.20"
|
||||
version = "0.3.21"
|
||||
edition = "2024"
|
||||
description = "Dioxus components that will display a Tavern blogging system Blog."
|
||||
repository = "/CyberMages/tavern"
|
||||
|
||||
@ -17,6 +17,11 @@ fn BlogLayout() -> Element
|
||||
|
||||
rsx!
|
||||
{
|
||||
// Setup the system to use Highlight.js for code blocks.
|
||||
// This is required for the Bard library.
|
||||
document::Stylesheet { href: "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/styles/vs2015.css" }
|
||||
document::Script { src: "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/highlight.min.js" }
|
||||
|
||||
match settings.stylesheet
|
||||
{
|
||||
StylesheetBehavior::Override(asset) =>
|
||||
@ -45,10 +50,6 @@ fn BlogLayout() -> Element
|
||||
}
|
||||
}
|
||||
|
||||
// Setup the system to use Highlight.js for code blocks.
|
||||
document::Stylesheet { href: "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/styles/vs2015.css" }
|
||||
document::Script { src: "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/highlight.min.js" }
|
||||
|
||||
Outlet::<Page> {}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user