Fix CSS being escaped

This commit is contained in:
Joscha 2024-05-04 22:47:45 +02:00
parent 6507276488
commit ee40d1f970

View file

@ -1,4 +1,4 @@
use maud::{html, Markup}; use maud::{html, Markup, PreEscaped};
use time::{macros::format_description, Date, OffsetDateTime}; use time::{macros::format_description, Date, OffsetDateTime};
use crate::endpoints::page; use crate::endpoints::page;
@ -10,7 +10,7 @@ pub async fn get() -> Markup {
page( page(
html! { html! {
style { (include_str!("base.css")) } style { (PreEscaped(include_str!("base.css"))) }
}, },
html! { html! {
form { form {