aboutsummaryrefslogtreecommitdiffstats
path: root/htdocs
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-10-29 15:00:05 +0200
committerArmand Philippot <git@armandphilippot.com>2021-10-29 15:00:05 +0200
commit15541b1c9b23a2caf490446bc7be08d66ef10e99 (patch)
tree484206c14a66a27fc16ffb9550f1201d3b3c769f /htdocs
parent26282b5e394d9b4007efbbe246a7afd7dba2d5ac (diff)
chore: update document title
Set a default title to static page, then change the title on project view.
Diffstat (limited to 'htdocs')
-rw-r--r--htdocs/index.html2
-rw-r--r--htdocs/legal-notice.html2
-rw-r--r--htdocs/mentions-legales.html2
-rw-r--r--htdocs/src/js/app.js1
4 files changed, 4 insertions, 3 deletions
diff --git a/htdocs/index.html b/htdocs/index.html
index d2fe5fc..47a8592 100644
--- a/htdocs/index.html
+++ b/htdocs/index.html
@@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Armand Philippot</title>
+ <title>Demo | Armand Philippot</title>
<link rel="stylesheet" href="assets/css/style.css" />
</head>
diff --git a/htdocs/legal-notice.html b/htdocs/legal-notice.html
index 14e807c..7b6c2bc 100644
--- a/htdocs/legal-notice.html
+++ b/htdocs/legal-notice.html
@@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Armand Philippot</title>
+ <title>Legal Notice | Demo | Armand Philippot</title>
<link rel="stylesheet" href="assets/css/style.css" />
</head>
diff --git a/htdocs/mentions-legales.html b/htdocs/mentions-legales.html
index 523b850..ebfdf52 100644
--- a/htdocs/mentions-legales.html
+++ b/htdocs/mentions-legales.html
@@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Armand Philippot</title>
+ <title>Mentions légales | Demo | Armand Philippot</title>
<link rel="stylesheet" href="assets/css/style.css" />
</head>
diff --git a/htdocs/src/js/app.js b/htdocs/src/js/app.js
index 4f5f5a5..57ac458 100644
--- a/htdocs/src/js/app.js
+++ b/htdocs/src/js/app.js
@@ -247,6 +247,7 @@ function showProject(id) {
});
detailsBtn.addEventListener('click', toggleProjectDetails);
window.history.pushState({}, currentProject.name, `#${id}`);
+ document.title = `${currentProject.name} | Demo | Armand Philippot`;
main.replaceChildren(preview, details);
}