diff --git a/src/routes/agreements.rs b/src/routes/agreements.rs index 3e41b74..79d894f 100644 --- a/src/routes/agreements.rs +++ b/src/routes/agreements.rs @@ -14,7 +14,7 @@ pub async fn security(req: HttpRequest, config: web::Data) -> impl Respo } #[derive(Template)] -#[template(path = "../templates/security.txt")] +#[template(path = "security.txt")] struct SecurityTemplate { contact: String, pref_lang: String, diff --git a/src/routes/contrib.rs b/src/routes/contrib.rs index 28bfdd3..b42d38a 100644 --- a/src/routes/contrib.rs +++ b/src/routes/contrib.rs @@ -9,7 +9,7 @@ pub async fn page() -> impl Responder { } #[derive(Template)] -#[template(path = "../templates/contrib.html")] +#[template(path = "contrib.html")] struct PortfolioTemplate {} pub fn get_page() -> std::string::String { diff --git a/src/routes/index.rs b/src/routes/index.rs index 0c1a953..e634b49 100644 --- a/src/routes/index.rs +++ b/src/routes/index.rs @@ -9,7 +9,7 @@ pub async fn page() -> impl Responder { } #[derive(Template)] -#[template(path = "../templates/index.html")] +#[template(path = "index.html")] struct IndexTemplate {} pub fn get_page() -> std::string::String { diff --git a/src/routes/networks.rs b/src/routes/networks.rs index 36df9ac..7758399 100644 --- a/src/routes/networks.rs +++ b/src/routes/networks.rs @@ -9,7 +9,7 @@ pub async fn page() -> impl Responder { } #[derive(Template)] -#[template(path = "../templates/networks.html")] +#[template(path = "networks.html")] struct NetworksTemplate {} pub fn get_page() -> std::string::String { diff --git a/src/routes/not_found.rs b/src/routes/not_found.rs index 5d1f566..bea0985 100644 --- a/src/routes/not_found.rs +++ b/src/routes/not_found.rs @@ -8,7 +8,7 @@ pub async fn page() -> impl Responder { } #[derive(Template)] -#[template(path = "../templates/404.html")] +#[template(path = "404.html")] struct Error404Template {} pub fn get_page() -> std::string::String { diff --git a/src/routes/portfolio.rs b/src/routes/portfolio.rs index 01323df..f17b091 100644 --- a/src/routes/portfolio.rs +++ b/src/routes/portfolio.rs @@ -9,7 +9,7 @@ pub async fn page() -> impl Responder { } #[derive(Template)] -#[template(path = "../templates/portfolio.html")] +#[template(path = "portfolio.html")] struct PortfolioTemplate {} pub fn get_page() -> std::string::String {