From 93b2a8382607d35435518ea73308dee72fb6e547 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 31 Oct 2023 09:40:52 +0200 Subject: div for page body class Signed-off-by: Lars Wirzenius Sponsored-by: author --- src/doc.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/doc.rs b/src/doc.rs index 7e80deb..29bc8ad 100644 --- a/src/doc.rs +++ b/src/doc.rs @@ -171,6 +171,7 @@ impl Document { self.meta.set_date(date.into()); let mut body_content = Element::new(crate::html::ElementTag::Div); + body_content.push_attribute(Attribute::new("class", "content")); for md in self.markdowns.iter() { body_content.push_child(Content::Elt(md.root_element().clone())); } -- cgit v1.2.1