From 6af53fac901c3e0822c2bc0f0db297105a949f22 Mon Sep 17 00:00:00 2001
From: peter_rabbit <pierrejarriges@gmail.com>
Date: Wed, 3 Feb 2021 17:59:34 +0100
Subject: [PATCH] refix:hidden seo h1

---
 build.js                               | 4 ++--
 public/education/index.html            | 2 +-
 public/games/index.html                | 2 +-
 public/index.html                      | 2 +-
 public/software-development/index.html | 2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/build.js b/build.js
index 7e7c53a..d72f789 100644
--- a/build.js
+++ b/build.js
@@ -29,8 +29,8 @@ function getPageHtml(pageName, pageMeta) {
             `<title>${pageMeta.title}</title>`
         );
         html = html.replace(
-            html.match(new RegExp(`<h1 id="seo-title">.+</h1>`, "g")),
-            `<h1 id="seo-title">${pageMeta.title}</h1>`
+            html.match(new RegExp(`<h1.+</h1>`, "g")),
+            `<h1 style="visibility: hidden">${pageMeta.title}</h1>`
         );
     };
     const setStyleSheet = function () {
diff --git a/public/education/index.html b/public/education/index.html
index 90c7877..407dad4 100644
--- a/public/education/index.html
+++ b/public/education/index.html
@@ -26,7 +26,7 @@
     </head>
     <body>
         <!-- The H1 tag will be never seen but it's necessary for SEO -->
-        <main><h1 id="seo-title">Kuadrado Software | Pédagogie</h1></main>
+        <main><h1 style="visibility: hidden">Kuadrado Software | Pédagogie</h1></main>
     </body>
     <script type="text/javascript" src="./education.js"></script>
 </html>
diff --git a/public/games/index.html b/public/games/index.html
index 179fca2..044c36e 100644
--- a/public/games/index.html
+++ b/public/games/index.html
@@ -28,7 +28,7 @@
     </head>
     <body>
         <!-- The H1 tag will be never seen but it's necessary for SEO -->
-        <main><h1 id="seo-title">Kuadrado Software | Jeux</h1></main>
+        <main><h1 style="visibility: hidden">Kuadrado Software | Jeux</h1></main>
     </body>
     <script type="text/javascript" src="./games.js"></script>
 </html>
diff --git a/public/index.html b/public/index.html
index 0d6db3a..cbb4bda 100644
--- a/public/index.html
+++ b/public/index.html
@@ -38,7 +38,7 @@
     </head>
     <body>
         <!-- The H1 tag will be never seen but it's necessary for SEO -->
-        <main><h1 id="seo-title">Kuadrado Software</h1></main>
+        <main><h1 style="visibility: hidden">Kuadrado Software</h1></main>
     </body>
     <script type="text/javascript" src="main.js"></script>
 </html>
diff --git a/public/software-development/index.html b/public/software-development/index.html
index 584a581..7595545 100644
--- a/public/software-development/index.html
+++ b/public/software-development/index.html
@@ -26,7 +26,7 @@
     </head>
     <body>
         <!-- The H1 tag will be never seen but it's necessary for SEO -->
-        <main><h1 id="seo-title">Kuadrado Software | Software</h1></main>
+        <main><h1 style="visibility: hidden">Kuadrado Software | Software</h1></main>
     </body>
     <script type="text/javascript" src="./software-development.js"></script>
 </html>
-- 
GitLab