From c392e6f999ba19f97e4022840bc6b3561fda8798 Mon Sep 17 00:00:00 2001 From: veradec Date: Fri, 30 Oct 2026 22:31:44 +0530 Subject: add: gitignore for the validation files --- .gitignore | 5 ++++- src/main.rs | 8 ++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 05bfe6d..d7571cd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ /target -public/ \ No newline at end of file +public/ +assets/ +static/ +templates/ \ No newline at end of file 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 { -- cgit v1.2.3