Last commit did not build.
All checks were successful
Build Tavernworks / Explore-Gitea-Actions (push) Successful in 2m57s
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.
This commit is contained in:
@ -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"
|
||||
|
||||
@ -15,13 +15,13 @@ fn BlogLayout() -> Element
|
||||
// Retrieve the provided settings from context.
|
||||
let settings = use_context::<BardSettings>();
|
||||
|
||||
// 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" }
|
||||
|
||||
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) =>
|
||||
|
||||
Reference in New Issue
Block a user