mirror of
https://forge.chapril.org/tykayn/orgmode-to-gemini-blog
synced 2025-06-20 09:04:42 +02:00
templates up
This commit is contained in:
parent
76008e80bf
commit
7b12ef533b
10 changed files with 42 additions and 99 deletions
|
@ -466,7 +466,7 @@ Dernière mise à jour: {dt.datetime.now().strftime('%Y-%m-%d, %H:%M:%S')}
|
|||
# Générer la page d'index seulement si des articles ont été convertis
|
||||
if pandoc_runs_counter > 0 or run_gemini or force_html_regen:
|
||||
# Appel de la fonction pour générer la page d'index
|
||||
generate_blog_index(destination_json + '/articles_info.json', 'templates/html/index.html.jinja', destination_html + 'index.html')
|
||||
generate_blog_index(destination_json + '/articles_info.json', 'templates/html/index.html.j2', destination_html + 'index.html')
|
||||
|
||||
print(f"\033[94m index régénéré {destination_html}index.html \033[0m")
|
||||
# else:
|
||||
|
@ -547,7 +547,7 @@ def generate_article_pages(json_file, template_file, output_dir):
|
|||
|
||||
# if pandoc_runs_counter or run_gemini:
|
||||
# Appel de la fonction pour générer les pages des articles
|
||||
generate_article_pages(destination_json + '/articles_info.json', 'templates/html/article.html.jinja', destination_html)
|
||||
generate_article_pages(destination_json + '/articles_info.json', 'templates/html/article.html.j2', destination_html)
|
||||
|
||||
# À la fin du script, calculer et afficher le temps d'exécution
|
||||
execution_time = time.time() - start_time
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue