From afef66d424a8e856b90a1cfa72dded1889b02fc8 Mon Sep 17 00:00:00 2001 From: Myrddin Dundragon Date: Sat, 17 Jan 2026 20:05:02 -0500 Subject: [PATCH] Last commit did not build. I acciedentally checked in code I didn't test. The stylesheet code needed to be in the rsx block. Also the version needed updating. --- bard/Cargo.toml | 2 +- bard/src/page.rs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bard/Cargo.toml b/bard/Cargo.toml index ef3710b..0d34507 100644 --- a/bard/Cargo.toml +++ b/bard/Cargo.toml @@ -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" diff --git a/bard/src/page.rs b/bard/src/page.rs index d32497c..f00a5d0 100644 --- a/bard/src/page.rs +++ b/bard/src/page.rs @@ -15,13 +15,13 @@ fn BlogLayout() -> Element // Retrieve the provided settings from context. let settings = use_context::(); - // 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) =>