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 58f951af authored by peter_rabbit's avatar peter_rabbit
Browse files

fix:hide 'seo h1'

parent d61cd832
No related branches found
No related tags found
No related merge requests found
......@@ -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 () {
......
......@@ -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>
......@@ -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>
......@@ -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>
......@@ -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>
......@@ -30,6 +30,9 @@ body .bg-blue {
background-color: #4baabb;
color: white;
}
body #seo-title {
visibility: hidden;
}
main {
display: flex;
......
......@@ -34,6 +34,9 @@ body {
background-color: $blue_2;
color: white;
}
#seo-title {
visibility: hidden;
}
}
main {
......
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