move on index build and linking previous and next articles

This commit is contained in:
Tykayn 2025-02-19 16:24:20 +01:00 committed by tykayn
parent 7d221d970a
commit 16b93f380e
1711 changed files with 231792 additions and 838 deletions

View file

@ -173,19 +173,17 @@ def ouvrir_fichier(chemin_fichier):
return ''
liste_fichiers_du_blog_convertis = os.walk(html_pages)
mylog('fichiers à enrichir:', liste_fichiers_du_blog_convertis)
count_articles=0
# Parcourir tous les fichiers HTML dans le dossier du blog donné
for root_path, dirs, files in liste_fichiers_du_blog_convertis :
mylog('fichiers à enrichir:', len(files))
# Prendre les templates partiaux pour chaque site web
partials = {
"header_content": "",
"footer_content": "",
}
print(len(files))
partials["header_content"] = ouvrir_fichier(os.path.join('sources',blog_name, 'templates', 'header_page.org'))
partials["footer_content"] = ouvrir_fichier(os.path.join('sources',blog_name, 'templates', 'footer_page.org'))