diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/generate_html.rs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/generate_html.rs b/src/generate_html.rs index 3b6ee62..b19d8b7 100644 --- a/src/generate_html.rs +++ b/src/generate_html.rs @@ -6,6 +6,7 @@ use recipe::*; const DEFAULT_TEMPLATE: &str = "\ <!DOCTYPE html> +<html> <head> <title>{page_name} — {site_name}</title> <meta charset='UTF-8'> @@ -90,11 +91,12 @@ pub fn generate_html_redirect(path: &str, website: &Website) -> String { let path = sanitize_text(path, false); format!("\ <!DOCTYPE html> -<head> -<title>Redirecting...</title> -<meta http-equiv='refresh' content='0; url={path}'> -{head} -</head> +<html> + <head> + <title>Redirecting...</title> + <meta http-equiv='refresh' content='0; url={path}'> + {head} + </head> </html>") } |
