mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-03 10:14:13 +02:00
inline class portraits
This commit is contained in:
parent
8325c0c57d
commit
fba70ae1c5
21 changed files with 21 additions and 18 deletions
|
|
@ -17,6 +17,7 @@ fn guess_embed(path: &str) -> (&'static str, bool) {
|
|||
match path.split('.').last().unwrap() {
|
||||
"svg" => ("image/svg+xml", true),
|
||||
"png" => ("image/png", true),
|
||||
"webp" => ("image/webp", true),
|
||||
ext => panic!("no mimetype known for {ext}"),
|
||||
}
|
||||
}
|
||||
|
|
@ -32,6 +33,8 @@ pub fn guess_mime(path: &str) -> &'static str {
|
|||
return "image/svg+xml";
|
||||
} else if path.ends_with("png") {
|
||||
return "image/png";
|
||||
} else if path.ends_with("webp") {
|
||||
return "image/webp";
|
||||
} else if path.ends_with("css") {
|
||||
return "text/css";
|
||||
} else if path.ends_with("wasm") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue