aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRuben Beltran del Rio <jj@r.bdr.sh>2026-04-30 16:42:32 +0200
committerRuben Beltran del Rio <jj@r.bdr.sh>2026-04-30 16:42:33 +0200
commitfe250aa344626b2e6283afd2c31979dccd327778 (patch)
tree846b3050104a31364e0a19346056d88f1fb69368 /src
parent43446bf7db0cb8779aa493042eece0523ec2bfdf (diff)
Fix HTML
Diffstat (limited to 'src')
-rw-r--r--src/render.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/render.rs b/src/render.rs
index 8e366dd..878cefa 100644
--- a/src/render.rs
+++ b/src/render.rs
@@ -17,13 +17,13 @@ pub fn page(path: &Path, text: &str) -> String {
let body = highlight(path, text);
let mut out = String::with_capacity(body.len() + 256);
- out.push_str("<!doctype html>\n<meta charset=\"utf-8\">\n<title>");
+ out.push_str("<!doctype html>\n<html>\n<head>\n<meta charset=\"utf-8\">\n<title>");
push_escaped(&mut out, title);
out.push_str("</title>\n<style>");
out.push_str(STYLE);
- out.push_str("</style>\n");
+ out.push_str("</style>\n</head>\n<body>\n");
out.push_str(&body);
- out.push('\n');
+ out.push_str("\n</body>\n</html>\n");
out
}