aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat
-rw-r--r--crates/zorian/src/assets/robots.txt5+5 −0
-rw-r--r--crates/zorian/src/controller_web.rs1+1 −0
2 files changed, 6 insertions, 0 deletions
diff --git a/crates/zorian/src/assets/robots.txt b/crates/zorian/src/assets/robots.txt
new file mode 100644
--- /dev/null
+++ b/crates/zorian/src/assets/robots.txt
@@ -0,0 +1,5 @@
+User-Agent: *
+Disallow: /zig/
+
+User-Agent: *
+Disallow: /go/
diff --git a/crates/zorian/src/controller_web.rs b/crates/zorian/src/controller_web.rs
index 7607315..ebd9ce1 100644
--- a/crates/zorian/src/controller_web.rs
+++ b/crates/zorian/src/controller_web.rs
@@ -48,6 +48,7 @@ fn get_asset(path: &str) -> Option<(&'static [u8], ContentType)> {
include_bytes!("assets/jetbrainsmono/JetBrainsMono-Italic[wght].woff2"),
ContentType::FontWoff2,
),
+ "robots.txt" => (include_bytes!("assets/robots.txt"), ContentType::TextPlain),
_ => return None,
})
}