templates up

This commit is contained in:
Tykayn 2025-03-27 13:37:26 +01:00 committed by tykayn
parent 76008e80bf
commit 7b12ef533b
10 changed files with 42 additions and 99 deletions

View file

@ -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