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

fix:missing h1 before rendering

parent 2264b3f6
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,10 @@ function getPageHtml(pageName, pageMeta) { ...@@ -28,6 +28,10 @@ function getPageHtml(pageName, pageMeta) {
html.match(new RegExp(`<title.+</title>`, "g"))[0], html.match(new RegExp(`<title.+</title>`, "g"))[0],
`<title>${pageMeta.title}</title>` `<title>${pageMeta.title}</title>`
); );
html = html.replace(
html.match(new RegExp(`<h1>.+</h1>`, "g")),
`<h1>${pageMeta.title}</h1>`
);
}; };
const setStyleSheet = function () { const setStyleSheet = function () {
html = html.replace( html = html.replace(
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<meta property="og:image" content="https://kuadrado-software.fr/assets/images/brain.png"/> <meta property="og:image" content="https://kuadrado-software.fr/assets/images/brain.png"/>
<meta property="twitter:image" content="https://kuadrado-software.fr/assets/images/brain.png"/> <meta property="twitter:image" content="https://kuadrado-software.fr/assets/images/brain.png"/>
<meta property="og:locale" content="fr_FR"/> <meta property="og:locale" content="fr_FR"/>
<meta property="og:site_name" content="Kuadrado Software"/> <meta property="og:site_name" content="Kuadrado Software" />
<!-- English translation not ready yet --> <!-- English translation not ready yet -->
<!-- <meta property="og:locale:alternate" content="en_GB" /> --> <!-- <meta property="og:locale:alternate" content="en_GB" /> -->
...@@ -25,7 +25,8 @@ ...@@ -25,7 +25,8 @@
<link href="/style/style.css" rel="stylesheet" /> <link href="/style/style.css" rel="stylesheet" />
</head> </head>
<body> <body>
<main></main> <!-- The H1 tag will be never seen but it's necessary for SEO -->
<main><h1>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>
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<meta property="og:image" content="https://kuadrado-software.fr/assets/images/popularization_banner.png"/> <meta property="og:image" content="https://kuadrado-software.fr/assets/images/popularization_banner.png"/>
<meta property="twitter:image" content="https://kuadrado-software.fr/assets/images/game_controller.png"/> <meta property="twitter:image" content="https://kuadrado-software.fr/assets/images/game_controller.png"/>
<meta property="og:locale" content="fr_FR"/> <meta property="og:locale" content="fr_FR"/>
<meta property="og:site_name" content="Kuadrado Software"/> <meta property="og:site_name" content="Kuadrado Software" />
<!-- English translation not ready yet --> <!-- English translation not ready yet -->
<!-- <meta property="og:locale:alternate" content="en_GB" /> --> <!-- <meta property="og:locale:alternate" content="en_GB" /> -->
...@@ -27,7 +27,8 @@ ...@@ -27,7 +27,8 @@
<link href="/style/style.css" rel="stylesheet" /> <link href="/style/style.css" rel="stylesheet" />
</head> </head>
<body> <body>
<main></main> <!-- The H1 tag will be never seen but it's necessary for SEO -->
<main><h1>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>
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
content="Créations numériques, jeux vidéos, web, software et pédagogie. Made in Ardèche, Vernoux en Vivarais." content="Créations numériques, jeux vidéos, web, software et pédagogie. Made in Ardèche, Vernoux en Vivarais."
/> />
<meta name="author" content="Kuadrado Software" /> <meta name="author" content="Kuadrado Software" />
<meta name="image" content="https://kuadrado-software.fr/assets/images/logo_kuadrado.png"/> <meta name="image" content="https://kuadrado-software.fr/assets/images/logo_kuadrado.png" />
<!-- Open Graph Protocol meta data --> <!-- Open Graph Protocol meta data -->
<meta property="og:title" content="Kuadrado Software" /> <meta property="og:title" content="Kuadrado Software" />
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
content="https://kuadrado-software.fr/assets/images/logo_kuadrado.png" content="https://kuadrado-software.fr/assets/images/logo_kuadrado.png"
/> />
<meta property="og:locale" content="fr_FR" /> <meta property="og:locale" content="fr_FR" />
<meta property="og:site_name" content="Kuadrado Software"/> <meta property="og:site_name" content="Kuadrado Software" />
<!-- English translation not ready yet --> <!-- English translation not ready yet -->
<!-- <meta property="og:locale:alternate" content="en_GB" /> --> <!-- <meta property="og:locale:alternate" content="en_GB" /> -->
...@@ -37,7 +37,8 @@ ...@@ -37,7 +37,8 @@
<link href="/style/style.css" rel="stylesheet" /> <link href="/style/style.css" rel="stylesheet" />
</head> </head>
<body> <body>
<main></main> <!-- The H1 tag will be never seen but it's necessary for SEO -->
<main><h1>Kuadrado Software</h1></main>
</body> </body>
<script type="text/javascript" src="main.js"></script> <script type="text/javascript" src="main.js"></script>
</html> </html>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<meta property="og:image" content="https://kuadrado-software.fr/assets/images/meca_proc.png"/> <meta property="og:image" content="https://kuadrado-software.fr/assets/images/meca_proc.png"/>
<meta property="twitter:image" content="https://kuadrado-software.fr/assets/images/meca_proc.png"/> <meta property="twitter:image" content="https://kuadrado-software.fr/assets/images/meca_proc.png"/>
<meta property="og:locale" content="fr_FR"/> <meta property="og:locale" content="fr_FR"/>
<meta property="og:site_name" content="Kuadrado Software"/> <meta property="og:site_name" content="Kuadrado Software" />
<!-- English translation not ready yet --> <!-- English translation not ready yet -->
<!-- <meta property="og:locale:alternate" content="en_GB" /> --> <!-- <meta property="og:locale:alternate" content="en_GB" /> -->
...@@ -25,7 +25,8 @@ ...@@ -25,7 +25,8 @@
<link href="/style/style.css" rel="stylesheet" /> <link href="/style/style.css" rel="stylesheet" />
</head> </head>
<body> <body>
<main></main> <!-- The H1 tag will be never seen but it's necessary for SEO -->
<main><h1>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