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.
This commit is contained in:
2026-01-17 20:05:02 -05:00
parent 6708636ec2
commit afef66d424
2 changed files with 6 additions and 6 deletions

View File

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

View File

@ -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) =>