use header on every templates
Some checks are pending
ci/woodpecker/push/publish Pipeline is pending

This commit is contained in:
Mylloon 2023-04-11 10:16:46 +02:00
parent 04d1cee8df
commit 91d9ff4157
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
8 changed files with 29 additions and 157 deletions

View file

@ -11,7 +11,12 @@ pub async fn page(config: web::Data<Config>) -> 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()),
},
)
}

View file

@ -12,7 +12,12 @@ pub async fn page(config: web::Data<Config>) -> 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()),
},
)
}

View file

@ -12,7 +12,12 @@ pub async fn page(config: web::Data<Config>) -> 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()),
},
)
}

View file

@ -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()),
},
)
}

View file

@ -1,41 +1,6 @@
<!DOCTYPE html>
<html class="index" lang="fr">
<head dir="rtl">
<title>Erreur 404</title>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=0.01" />
<link rel="stylesheet" href="css/style.css" />
<meta name="author" content="Mylloon" />
<meta name="description" content="Page principale" />
<link
rel="apple-touch-icon"
sizes="180x180"
href="icons/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="icons/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="icons/favicon-16x16.png"
/>
<link rel="manifest" href="icons/site.webmanifest" />
<link rel="mask-icon" href="icons/safari-pinned-tab.svg" color="#5bbad5" />
<link rel="shortcut icon" href="icons/favicon.ico" />
<meta name="msapplication-TileColor" content="#ffffff" />
<meta name="msapplication-config" content="icons/browserconfig.xml" />
<meta name="theme-color" content="#2a2424" />
<meta content="Anri - Mylloon" property="og:title" />
<meta content="Page principale" property="og:description" />
<meta content="icons/apple-touch-icon.png" property="og:image" />
<meta content="#43B581" data-react-helmet="true" name="theme-color" />
</head>
{{> header.html }}
<body class="index">
<p style="color: aliceblue">404 :/</p>
{{> footer.html }}

View file

@ -1,42 +1,6 @@
<!DOCTYPE html>
<html class="index" lang="fr">
<head dir="rtl">
<title>Mes contributions - Anri</title>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/style.css" />
<meta name="author" content="Mylloon" />
<meta name="description" content="Réseaux d'Anri Kennel" />
<base target="_blank" />
<link
rel="apple-touch-icon"
sizes="180x180"
href="icons/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="icons/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="icons/favicon-16x16.png"
/>
<link rel="manifest" href="icons/site.webmanifest" />
<link rel="mask-icon" href="icons/safari-pinned-tab.svg" color="#5bbad5" />
<link rel="shortcut icon" href="icons/favicon.ico" />
<meta name="msapplication-TileColor" content="#ffffff" />
<meta name="msapplication-config" content="icons/browserconfig.xml" />
<meta name="theme-color" content="#2a2424" />
<meta content="Réseaux" property="og:title" />
<meta content="Réseaux d'Anri Kennel" property="og:description" />
<meta content="icons/apple-touch-icon.png" property="og:image" />
<meta content="#43B581" data-react-helmet="true" name="theme-color" />
</head>
{{> header.html }}
<body>
<div id="content">
<h1 class="subtitle">Mes contributions</h1>

View file

@ -1,42 +1,6 @@
<!DOCTYPE html>
<html class="index" lang="fr">
<head dir="rtl">
<title>Page principale - Anri</title>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=0.01" />
<link rel="stylesheet" href="css/style.css" />
<meta name="author" content="Mylloon" />
<meta name="description" content="Page principale" />
<link
rel="apple-touch-icon"
sizes="180x180"
href="icons/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="icons/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="icons/favicon-16x16.png"
/>
<link rel="manifest" href="icons/site.webmanifest" />
<link rel="mask-icon" href="icons/safari-pinned-tab.svg" color="#5bbad5" />
<link rel="shortcut icon" href="icons/favicon.ico" />
<meta name="msapplication-TileColor" content="#ffffff" />
<meta name="msapplication-config" content="icons/browserconfig.xml" />
<meta name="theme-color" content="#2a2424" />
<meta content="Anri - Mylloon" property="og:title" />
<meta content="Page principale" property="og:description" />
<meta content="icons/apple-touch-icon.png" property="og:image" />
<meta content="#43B581" data-react-helmet="true" name="theme-color" />
<link rel="me" href="https://piaille.fr/@mylloon" />
</head>
{{> header.html }}
<body class="index">
<div class="divIndex">
<button

View file

@ -1,42 +1,6 @@
<!DOCTYPE html>
<html class="index" lang="fr">
<head dir="rtl">
<title>Mes réseaux - Anri</title>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/style.css" />
<meta name="author" content="Mylloon" />
<meta name="description" content="Réseaux d'Anri Kennel" />
<base target="_blank" />
<link
rel="apple-touch-icon"
sizes="180x180"
href="icons/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="icons/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="icons/favicon-16x16.png"
/>
<link rel="manifest" href="icons/site.webmanifest" />
<link rel="mask-icon" href="icons/safari-pinned-tab.svg" color="#5bbad5" />
<link rel="shortcut icon" href="icons/favicon.ico" />
<meta name="msapplication-TileColor" content="#ffffff" />
<meta name="msapplication-config" content="icons/browserconfig.xml" />
<meta name="theme-color" content="#2a2424" />
<meta content="Réseaux" property="og:title" />
<meta content="Réseaux d'Anri Kennel" property="og:description" />
<meta content="icons/apple-touch-icon.png" property="og:image" />
<meta content="#43B581" data-react-helmet="true" name="theme-color" />
</head>
{{> header.html }}
<body>
<div id="content">
<h1 class="subtitle">Contacts et <em>réseaux sociaux</em></h1>