Browse Source

Move /static to /assets

master
Dylan Baker 5 years ago
parent
commit
0597fba3ea
3 changed files with 3 additions and 3 deletions
  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 View File

@@ -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 View File

@@ -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 View File

@@ -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…
Cancel
Save