mirror of
https://forge.chapril.org/tykayn/orgmode-to-gemini-blog
synced 2025-06-20 09:04:42 +02:00
up css and nav
This commit is contained in:
parent
356a365eec
commit
c17b922673
1521 changed files with 145858 additions and 53170 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue