diff options
Diffstat (limited to 'src/doc.rs')
-rw-r--r-- | src/doc.rs | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -160,6 +160,14 @@ impl Document { } head.push_child(Content::Elt(css)); + for css_url in self.meta.css_urls() { + let mut link = Element::new(ElementTag::Link); + link.push_attribute(Attribute::new("rel", "stylesheet")); + link.push_attribute(Attribute::new("type", "text/css")); + link.push_attribute(Attribute::new("href", css_url)); + head.push_child(Content::Elt(link)); + } + self.meta.set_date(date.into()); let mut body_content = Element::new(crate::html::ElementTag::Div); |