use header on every templates
Some checks are pending
ci/woodpecker/push/publish Pipeline is pending
Some checks are pending
ci/woodpecker/push/publish Pipeline is pending
This commit is contained in:
parent
04d1cee8df
commit
91d9ff4157
8 changed files with 29 additions and 157 deletions
|
@ -11,7 +11,12 @@ pub async fn page(config: web::Data<Config>) -> impl Responder {
|
||||||
struct PortfolioTemplate {}
|
struct PortfolioTemplate {}
|
||||||
|
|
||||||
pub fn get_page(config: Config) -> std::string::String {
|
pub fn get_page(config: Config) -> std::string::String {
|
||||||
config
|
config.tmpl.render(
|
||||||
.tmpl
|
"contrib.html",
|
||||||
.render("contrib.html", PortfolioTemplate {}, Infos::default())
|
PortfolioTemplate {},
|
||||||
|
Infos {
|
||||||
|
page_title: Some("Mes contributions".to_string()),
|
||||||
|
page_desc: Some("Contributions à l'opensource par Anri".to_string()),
|
||||||
|
},
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,12 @@ pub async fn page(config: web::Data<Config>) -> impl Responder {
|
||||||
struct IndexTemplate {}
|
struct IndexTemplate {}
|
||||||
|
|
||||||
pub fn get_page(config: Config) -> std::string::String {
|
pub fn get_page(config: Config) -> std::string::String {
|
||||||
config
|
config.tmpl.render(
|
||||||
.tmpl
|
"index.html",
|
||||||
.render("index.html", IndexTemplate {}, Infos::default())
|
IndexTemplate {},
|
||||||
|
Infos {
|
||||||
|
page_title: Some("Mylloon".to_string()),
|
||||||
|
page_desc: Some("Page principale".to_string()),
|
||||||
|
},
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,12 @@ pub async fn page(config: web::Data<Config>) -> impl Responder {
|
||||||
struct NetworksTemplate {}
|
struct NetworksTemplate {}
|
||||||
|
|
||||||
pub fn get_page(config: Config) -> std::string::String {
|
pub fn get_page(config: Config) -> std::string::String {
|
||||||
config
|
config.tmpl.render(
|
||||||
.tmpl
|
"networks.html",
|
||||||
.render("networks.html", NetworksTemplate {}, Infos::default())
|
NetworksTemplate {},
|
||||||
|
Infos {
|
||||||
|
page_title: Some("Mes réseaux".to_string()),
|
||||||
|
page_desc: Some("Réseaux d'Anri".to_string()),
|
||||||
|
},
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,7 @@ pub fn get_page(config: Config) -> std::string::String {
|
||||||
},
|
},
|
||||||
Infos {
|
Infos {
|
||||||
page_title: Some("Portfolio".to_string()),
|
page_title: Some("Portfolio".to_string()),
|
||||||
page_desc: None,
|
page_desc: Some("Portfolio d'Anri".to_string()),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,41 +1,6 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html class="index" lang="fr">
|
<html class="index" lang="fr">
|
||||||
<head dir="rtl">
|
{{> header.html }}
|
||||||
<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>
|
|
||||||
<body class="index">
|
<body class="index">
|
||||||
<p style="color: aliceblue">404 :/</p>
|
<p style="color: aliceblue">404 :/</p>
|
||||||
{{> footer.html }}
|
{{> footer.html }}
|
||||||
|
|
|
@ -1,42 +1,6 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html class="index" lang="fr">
|
<html class="index" lang="fr">
|
||||||
<head dir="rtl">
|
{{> header.html }}
|
||||||
<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>
|
|
||||||
<body>
|
<body>
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<h1 class="subtitle">Mes contributions</h1>
|
<h1 class="subtitle">Mes contributions</h1>
|
||||||
|
|
|
@ -1,42 +1,6 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html class="index" lang="fr">
|
<html class="index" lang="fr">
|
||||||
<head dir="rtl">
|
{{> header.html }}
|
||||||
<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>
|
|
||||||
<body class="index">
|
<body class="index">
|
||||||
<div class="divIndex">
|
<div class="divIndex">
|
||||||
<button
|
<button
|
||||||
|
|
|
@ -1,42 +1,6 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html class="index" lang="fr">
|
<html class="index" lang="fr">
|
||||||
<head dir="rtl">
|
{{> header.html }}
|
||||||
<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>
|
|
||||||
<body>
|
<body>
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<h1 class="subtitle">Contacts et <em>réseaux sociaux</em></h1>
|
<h1 class="subtitle">Contacts et <em>réseaux sociaux</em></h1>
|
||||||
|
|
Loading…
Reference in a new issue