up link gemini in index

This commit is contained in:
Tykayn 2025-02-28 19:10:17 +01:00 committed by tykayn
parent 6050907dc9
commit b59d5d93a4

View file

@ -402,6 +402,8 @@ def generate_blog_index(json_file, template_file, output_file):
if article['annee'] != current_year:
current_year = article['annee']
gmi_list_articles += f"\n## {current_year}\n\n"
if article['slug'].endswith('/'):
article['slug'] = article['slug'].rstrip('/')
gmi_list_articles += f"=> {article['annee']}/{article['slug']}.gmi {article['title']}\n"
output_index_gmi = f"""