From c201bb4bc462cc53f72dedd43eaff0c13cda0814 Mon Sep 17 00:00:00 2001 From: Magnus Hoff Date: Tue, 10 Jul 2018 08:46:51 +0200 Subject: [PATCH] Add test page for themes --- assets/test-themes.html | 35 +++++++++++++++++++++++++++++++++++ src/wiki_lookup.rs | 1 + 2 files changed, 36 insertions(+) create mode 100644 assets/test-themes.html 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",