Compare commits

...

2 Commits

Author SHA1 Message Date
afef66d424 Last commit did not build.
All checks were successful
Build Tavernworks / Explore-Gitea-Actions (push) Successful in 2m57s
I acciedentally checked in code I didn't test.

The stylesheet code needed to be in the rsx block. Also the version
needed updating.
2026-01-17 20:05:02 -05:00
6708636ec2 The highlighting should be loaded before the CSS.
This way a client can override the CSS from the highlighting.
2026-01-17 20:02:56 -05:00
2 changed files with 6 additions and 5 deletions

View File

@ -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"

View File

@ -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> {}
}
}