Bonjour, Dans le fichier \_includes/base.njk on trouve 2 fois la balise \<head\>\<\/head\> :
- une fois dans l’entête (normal)
- une fois dans le corps du fichier (pas normal, à mon sens)
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ title }}</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<head>
<h1>{{ title }}</h1>
<main> {{ content | safe }} </main>
</head>
</body>
</html>```
je propose de supprimer la balise superfétatoire ; le code deviendrait alors :
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ title }}</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<h1>{{ title }}</h1>
<main> {{ content | safe }} </main>
</body>
</html>