diff --git a/src/lib.rs b/src/lib.rs index 572693c..8ad4f54 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -26,9 +26,9 @@ pub fn pandoc(path: &Path, title: &str) -> Result { "-M", "dir=rtl", "-H", - "head.html", + "static/head.html", "-A", - "script.html", + "static/script.html", ]) .output()?; diff --git a/src/main.rs b/src/main.rs index 05607d5..d371064 100644 --- a/src/main.rs +++ b/src/main.rs @@ -40,19 +40,19 @@ async fn hello() -> impl Responder { #[get("/robots.txt")] async fn robots() -> actix_web::Result { - let path = Path::new("robots.txt"); + let path = Path::new("static/robots.txt"); Ok(NamedFile::open(path)?) } #[get("/styles.css")] async fn css() -> actix_web::Result { - let path = Path::new("styles.css"); + let path = Path::new("static/styles.css"); Ok(NamedFile::open(path)?) } #[get("/pretty.js")] async fn js() -> actix_web::Result { - let path = Path::new("pretty.js"); + let path = Path::new("static/pretty.js"); Ok(NamedFile::open(path)?) } diff --git a/head.html b/static/head.html similarity index 100% rename from head.html rename to static/head.html diff --git a/pretty.js b/static/pretty.js similarity index 100% rename from pretty.js rename to static/pretty.js diff --git a/robots.txt b/static/robots.txt similarity index 100% rename from robots.txt rename to static/robots.txt diff --git a/script.html b/static/script.html similarity index 100% rename from script.html rename to static/script.html diff --git a/styles.css b/static/styles.css similarity index 100% rename from styles.css rename to static/styles.css