mirror of
https://forge.chapril.org/tykayn/orgmode-to-gemini-blog
synced 2025-06-20 09:04:42 +02:00
move on index build and linking previous and next articles
This commit is contained in:
parent
7d221d970a
commit
16b93f380e
1711 changed files with 231792 additions and 838 deletions
|
@ -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'))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue