diff --git a/build.js b/build.js index 7e7c53adae76fe296fce0b50c25e95f2c7fe2bb9..d72f7890bc950af7a60e34ae70cab03ac4d53149 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 90c7877a2d61d2c16caafef4ee92b7837aeda59d..407dad412565a5ed428f2d883423223785255b7c 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 179fca274e5973a6104fa8c9059d70a95133f87d..044c36e33593b9c0615fc2b7a06a42c6a697806e 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 0d6db3a0ef0a46d46064dc83fb9485b25574956e..cbb4bda61fa21271be4010fa3c7c6b28ff84c63a 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 584a581636a240579c5eaef93f45b7d50dde1d51..75955457b8d4ea1f5ce46de300f928cbfbfeaca3 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>