diff --git a/src/routes/contrib.rs b/src/routes/contrib.rs index 8989a7d..72c0170 100644 --- a/src/routes/contrib.rs +++ b/src/routes/contrib.rs @@ -11,7 +11,12 @@ pub async fn page(config: web::Data) -> impl Responder { struct PortfolioTemplate {} pub fn get_page(config: Config) -> std::string::String { - config - .tmpl - .render("contrib.html", PortfolioTemplate {}, Infos::default()) + config.tmpl.render( + "contrib.html", + PortfolioTemplate {}, + Infos { + page_title: Some("Mes contributions".to_string()), + page_desc: Some("Contributions à l'opensource par Anri".to_string()), + }, + ) } diff --git a/src/routes/index.rs b/src/routes/index.rs index 4336335..e6da094 100644 --- a/src/routes/index.rs +++ b/src/routes/index.rs @@ -12,7 +12,12 @@ pub async fn page(config: web::Data) -> impl Responder { struct IndexTemplate {} pub fn get_page(config: Config) -> std::string::String { - config - .tmpl - .render("index.html", IndexTemplate {}, Infos::default()) + config.tmpl.render( + "index.html", + IndexTemplate {}, + Infos { + page_title: Some("Mylloon".to_string()), + page_desc: Some("Page principale".to_string()), + }, + ) } diff --git a/src/routes/networks.rs b/src/routes/networks.rs index be25032..cb1abaa 100644 --- a/src/routes/networks.rs +++ b/src/routes/networks.rs @@ -12,7 +12,12 @@ pub async fn page(config: web::Data) -> impl Responder { struct NetworksTemplate {} pub fn get_page(config: Config) -> std::string::String { - config - .tmpl - .render("networks.html", NetworksTemplate {}, Infos::default()) + config.tmpl.render( + "networks.html", + NetworksTemplate {}, + Infos { + page_title: Some("Mes réseaux".to_string()), + page_desc: Some("Réseaux d'Anri".to_string()), + }, + ) } diff --git a/src/routes/portfolio.rs b/src/routes/portfolio.rs index 7cf51b4..e39f0f6 100644 --- a/src/routes/portfolio.rs +++ b/src/routes/portfolio.rs @@ -44,7 +44,7 @@ pub fn get_page(config: Config) -> std::string::String { }, Infos { page_title: Some("Portfolio".to_string()), - page_desc: None, + page_desc: Some("Portfolio d'Anri".to_string()), }, ) } diff --git a/templates/404.html b/templates/404.html index e047f7f..1056717 100644 --- a/templates/404.html +++ b/templates/404.html @@ -1,41 +1,6 @@ - - Erreur 404 - - - - - - - - - - - - - - - - - - - - + {{> header.html }}

404 :/

{{> footer.html }} diff --git a/templates/contrib.html b/templates/contrib.html index 06c179b..5e80b7a 100644 --- a/templates/contrib.html +++ b/templates/contrib.html @@ -1,42 +1,6 @@ - - Mes contributions - Anri - - - - - - - - - - - - - - - - - - - - - + {{> header.html }}

Mes contributions

diff --git a/templates/index.html b/templates/index.html index 043a4fb..cb33028 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,42 +1,6 @@ - - Page principale - Anri - - - - - - - - - - - - - - - - - - - - - + {{> header.html }}