use relative path
This commit is contained in:
parent
5ccec75536
commit
45b2de54fb
6 changed files with 6 additions and 6 deletions
|
@ -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,
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue