Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 6af53fac authored by peter_rabbit's avatar peter_rabbit
Browse files

refix:hidden seo h1

parent 58f951af
No related branches found
No related tags found
No related merge requests found
...@@ -29,8 +29,8 @@ function getPageHtml(pageName, pageMeta) { ...@@ -29,8 +29,8 @@ function getPageHtml(pageName, pageMeta) {
`<title>${pageMeta.title}</title>` `<title>${pageMeta.title}</title>`
); );
html = html.replace( html = html.replace(
html.match(new RegExp(`<h1 id="seo-title">.+</h1>`, "g")), html.match(new RegExp(`<h1.+</h1>`, "g")),
`<h1 id="seo-title">${pageMeta.title}</h1>` `<h1 style="visibility: hidden">${pageMeta.title}</h1>`
); );
}; };
const setStyleSheet = function () { const setStyleSheet = function () {
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</head> </head>
<body> <body>
<!-- The H1 tag will be never seen but it's necessary for SEO --> <!-- 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> </body>
<script type="text/javascript" src="./education.js"></script> <script type="text/javascript" src="./education.js"></script>
</html> </html>
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</head> </head>
<body> <body>
<!-- The H1 tag will be never seen but it's necessary for SEO --> <!-- 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> </body>
<script type="text/javascript" src="./games.js"></script> <script type="text/javascript" src="./games.js"></script>
</html> </html>
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</head> </head>
<body> <body>
<!-- The H1 tag will be never seen but it's necessary for SEO --> <!-- 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> </body>
<script type="text/javascript" src="main.js"></script> <script type="text/javascript" src="main.js"></script>
</html> </html>
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</head> </head>
<body> <body>
<!-- The H1 tag will be never seen but it's necessary for SEO --> <!-- 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> </body>
<script type="text/javascript" src="./software-development.js"></script> <script type="text/javascript" src="./software-development.js"></script>
</html> </html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment