added logo img tag to inside section tag
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user