summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorveradec <glitchmill.dyj3d@simplelogin.co>2026-10-30 22:31:44 +0530
committerveradec <glitchmill.dyj3d@simplelogin.co>2026-10-30 22:31:44 +0530
commitc392e6f999ba19f97e4022840bc6b3561fda8798 (patch)
tree646cd07f1da492770b07ffa95d26f6b39c653687 /src
parent7e78446bb7227fc90f869f53e321853e91b2e34a (diff)
add: gitignore for the validation files
Diffstat (limited to 'src')
-rw-r--r--src/main.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 0546a67..45cd7ca 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -83,12 +83,16 @@ fn markdown_to_html(path: String, content: String) -> HTMLFile {
html = fs::read_to_string("templates/post.html")
.unwrap()
- .replace("{{content}}", &html);
+ .replace("{{content}}", &html)
+ .replace("{{title}}", &title)
+ .replace("{{description}}", &description);
} else {
file_name = "public/index.html".to_string();
html = fs::read_to_string("templates/index.html")
.unwrap()
- .replace("{{content}}", &html);
+ .replace("{{content}}", &html)
+ .replace("{{title}}", &title)
+ .replace("{{description}}", &description);
}
return HTMLFile {