diff --git a/assets/test-themes.html b/assets/test-themes.html new file mode 100644 index 0000000..a42bbd3 --- /dev/null +++ b/assets/test-themes.html @@ -0,0 +1,35 @@ + + + + Test themes – Sausagewiki + + + + +
+
The quick brown dog jumps over the lazy log
+
+ + + diff --git a/src/wiki_lookup.rs b/src/wiki_lookup.rs index 76e2ea1..26bb9f6 100644 --- a/src/wiki_lookup.rs +++ b/src/wiki_lookup.rs @@ -82,6 +82,7 @@ fn fs_lookup(root: &str, path: &str) -> let extension = path.rsplitn(2, ".").next(); let content_type = match extension { + Some("html") => "text/html", Some("css") => "text/css", Some("js") => "application/javascript", Some("woff") => "application/font-woff",