added logo img tag to inside section tag

This commit is contained in:
DastInDark
2022-09-28 09:15:57 +09:00
parent 700f7cfb79
commit 0fccc6a2c3

View File

@@ -93,7 +93,6 @@ pub fn create_html_file(input_html: String, path_str: String) {
}
let mut html_writer = BufWriter::new(File::create(path).unwrap());
let result_contents = format!("<section>{}</section>", input_html);
let html_data = format!(
"{}",
@@ -106,8 +105,10 @@ pub fn create_html_file(input_html: String, path_str: String) {
link(rel="icon", type="image/png", href="./favicon.png");
}
body {
img(id="logo", src = "./logo.png");
: Raw(result_contents.as_str());
section {
img(id="logo", src = "./logo.png");
: Raw(input_html.as_str());
}
}
}