Add doctype

This commit is contained in:
clerie 2024-07-28 15:42:47 +02:00
parent b521291863
commit 7f2e0febf3

View File

@ -134,6 +134,7 @@ async fn route_index(
) -> Result<Html<String>, String> {
let mut out = String::new();
out.push_str("<!DOCTYPE html>\n");
out.push_str("<html>\n");
out.push_str("<head><title>Nur Ausstieg</title></head>\n");
out.push_str("<body>\n");
@ -168,6 +169,7 @@ async fn route_station_overview(
let mut out = String::new();
out.push_str("<!DOCTYPE html>\n");
out.push_str("<html>\n");
out.push_str(&format!("<head><title>Ziele für {} | Nur Ausstieg</title></head>\n", station_properties.name));
out.push_str("<body>\n");
@ -235,6 +237,7 @@ async fn route_station_to_dest_station(
let mut out = String::new();
out.push_str("<!DOCTYPE html>\n");
out.push_str("<html>\n");
out.push_str(&format!("<head><title>Abfahrten für {} nach {} | Nur Ausstieg</title></head>\n", station_properties.name, dest_station_properties.name));
out.push_str("<body>\n");