up css and nav

This commit is contained in:
Tykayn 2024-11-04 11:52:45 +01:00 committed by tykayn
parent 356a365eec
commit c17b922673
1521 changed files with 145858 additions and 53170 deletions

View file

@ -26,7 +26,7 @@ for root, _, files in os.walk(html_dir):
html_content = f.read()
# Ajouter la déclaration de charset UTF-8, le doctype HTML et le titre du site Web
html_content = f"<!DOCTYPE html>\n<html lang=\"fr\">\n<head>\n<meta charset=\"UTF-8\">\n<title>{args.title}</title>\n<style type='text/css'>{css_content}</style></head>\n<body>\n{html_content}\n</body>\n</html>"
html_content = f"<!DOCTYPE html>\n<html lang=\"fr\">\n<head>\n<meta charset=\"UTF-8\">\n<title>{args.title}</title>\n<style type='text/css'>{css_content}</style></head>\n<body>\n<a href='/'>Retour à l'Accueil</a><hr/>{html_content}\n<footer><hr/><a href='/'>Retour à l'Accueil</a></footer></body>\n</html>"
# Écrire le contenu modifié dans le fichier HTML
with open(os.path.join(root, file), "w") as f: