use relative path

This commit is contained in:
Mylloon 2023-04-09 16:51:50 +02:00
parent 5ccec75536
commit 45b2de54fb
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
6 changed files with 6 additions and 6 deletions

View file

@ -14,7 +14,7 @@ pub async fn security(req: HttpRequest, config: web::Data<Config>) -> impl Respo
}
#[derive(Template)]
#[template(path = "../templates/security.txt")]
#[template(path = "security.txt")]
struct SecurityTemplate {
contact: String,
pref_lang: String,

View file

@ -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 {

View file

@ -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 {

View file

@ -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 {

View file

@ -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 {

View file

@ -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 {