Преглед изворни кода

Move /static to /assets

master
Dylan Baker пре 5 година
родитељ
комит
0597fba3ea
3 измењених фајлова са 3 додато и 3 уклоњено
  1. 1
    1
      src/main.rs
  2. 1
    1
      templates/index.html.tera
  3. 1
    1
      templates/snippets/show.html.tera

+ 1
- 1
src/main.rs Прегледај датотеку

@@ -40,7 +40,7 @@ fn main() {
40 40
             "/",
41 41
             routes![index, show_snippet, show_raw_snippet, create_snippet],
42 42
         )
43
-        .mount("/static", StaticFiles::from("static"))
43
+        .mount("/assets", StaticFiles::from("static"))
44 44
         .register(catchers![bad_request, not_found])
45 45
         .launch();
46 46
 }

+ 1
- 1
templates/index.html.tera Прегледај датотеку

@@ -1,7 +1,7 @@
1 1
 <html>
2 2
   <head>
3 3
     <title>bngl.ws</title>
4
-    <link rel="stylesheet" href="/static/style.css">
4
+    <link rel="stylesheet" href="/assets/style.css">
5 5
     <meta name="viewport" content="width=device-width">
6 6
   </head>
7 7
   <body>

+ 1
- 1
templates/snippets/show.html.tera Прегледај датотеку

@@ -2,7 +2,7 @@
2 2
 <html>
3 3
   <head>
4 4
     <title>{{ snippet.title }}</title>
5
-    <link rel="stylesheet" href="/static/style.css">
5
+    <link rel="stylesheet" href="/assets/style.css">
6 6
     <meta name="viewport" content="width=device-width">
7 7
   </head>
8 8
   <body>

Loading…
Откажи
Сачувај