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]
|
[package]
|
||||||
name = "bard"
|
name = "bard"
|
||||||
version = "0.3.20"
|
version = "0.3.21"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
description = "Dioxus components that will display a Tavern blogging system Blog."
|
description = "Dioxus components that will display a Tavern blogging system Blog."
|
||||||
repository = "/CyberMages/tavern"
|
repository = "/CyberMages/tavern"
|
||||||
|
|||||||
@ -15,13 +15,13 @@ fn BlogLayout() -> Element
|
|||||||
// Retrieve the provided settings from context.
|
// Retrieve the provided settings from context.
|
||||||
let settings = use_context::<BardSettings>();
|
let settings = use_context::<BardSettings>();
|
||||||
|
|
||||||
|
rsx!
|
||||||
|
{
|
||||||
// Setup the system to use Highlight.js for code blocks.
|
// Setup the system to use Highlight.js for code blocks.
|
||||||
// This is required for the Bard library.
|
// 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::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" }
|
document::Script { src: "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/highlight.min.js" }
|
||||||
|
|
||||||
rsx!
|
|
||||||
{
|
|
||||||
match settings.stylesheet
|
match settings.stylesheet
|
||||||
{
|
{
|
||||||
StylesheetBehavior::Override(asset) =>
|
StylesheetBehavior::Override(asset) =>
|
||||||
|
|||||||
Reference in New Issue
Block a user