diff --git a/build.js b/build.js index e0b7cbd789d0bff14e9d2817b85454d02fe2f1dc..7e7c53adae76fe296fce0b50c25e95f2c7fe2bb9 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>.+</h1>`, "g")), - `<h1>${pageMeta.title}</h1>` + html.match(new RegExp(`<h1 id="seo-title">.+</h1>`, "g")), + `<h1 id="seo-title">${pageMeta.title}</h1>` ); }; const setStyleSheet = function () { diff --git a/public/education/index.html b/public/education/index.html index 4cde3399e83bb84d0955d3d73b99250e76a7c3d1..90c7877a2d61d2c16caafef4ee92b7837aeda59d 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>Kuadrado Software | Pédagogie</h1></main> + <main><h1 id="seo-title">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 5f459c8008c07cda07e6457435fcd137206eebfb..179fca274e5973a6104fa8c9059d70a95133f87d 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>Kuadrado Software | Jeux</h1></main> + <main><h1 id="seo-title">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 f30fe4b093b83b726d3943dabe4b4d13d85fcd1b..0d6db3a0ef0a46d46064dc83fb9485b25574956e 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>Kuadrado Software</h1></main> + <main><h1 id="seo-title">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 0f999db8f9ee988c1d59e36f56cb1af208433225..584a581636a240579c5eaef93f45b7d50dde1d51 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>Kuadrado Software | Software</h1></main> + <main><h1 id="seo-title">Kuadrado Software | Software</h1></main> </body> <script type="text/javascript" src="./software-development.js"></script> </html> diff --git a/public/style/style.css b/public/style/style.css index 0b780976e2fe680859bca9ec66d1a022c43ffbb9..aff3fccf7dc069288297e2af5bec7985d66d2248 100644 --- a/public/style/style.css +++ b/public/style/style.css @@ -30,6 +30,9 @@ body .bg-blue { background-color: #4baabb; color: white; } +body #seo-title { + visibility: hidden; +} main { display: flex; diff --git a/src/style.scss b/src/style.scss index f11b96ef0300423af5dcc743dc66bc36d1b87c48..4c97d061d031e526e8569d0b45334f091ba0f1ad 100644 --- a/src/style.scss +++ b/src/style.scss @@ -34,6 +34,9 @@ body { background-color: $blue_2; color: white; } + #seo-title { + visibility: hidden; + } } main {