mirror of
https://forge.chapril.org/tykayn/orgmode-to-gemini-blog
synced 2025-06-20 09:04:42 +02:00
up link gemini in index
This commit is contained in:
parent
6050907dc9
commit
b59d5d93a4
1 changed files with 2 additions and 0 deletions
|
@ -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"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue