From 5eb3cabb31a57dbd51ed53c52dd9a87029f7cf61 Mon Sep 17 00:00:00 2001 From: nebula Date: Thu, 3 Apr 2025 05:56:04 +0000 Subject: [PATCH] fix gemini index spacing --- generate.py | 2 +- templates/gemini_main | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/generate.py b/generate.py index 7b8a32c..24e1ff4 100644 --- a/generate.py +++ b/generate.py @@ -154,7 +154,7 @@ def render_gemini_places(): content = f.read() process = Popen(["gemgen"], stdout=PIPE, stdin=PIPE, stderr=PIPE, text=True) with open(gemini_out_dir + post_name + ".gmi", "w") as f: - header = f"=> https://helixnebula.space/{post_name}/ Link to photography.\n\n" + header = f"=> / Index\n=> https://helixnebula.space/{post_name}/ Link to photography.\n\n" gemtext = process.communicate(input=content)[0] gemtext_with_local_urls = name_from_url.sub(sub_http_local_urls, gemtext) f.write(header + gemtext_with_local_urls) diff --git a/templates/gemini_main b/templates/gemini_main index 1d050cf..bf5eddb 100644 --- a/templates/gemini_main +++ b/templates/gemini_main @@ -10,6 +10,5 @@ This is my gemspace, where I share stories from my travels. My posts from the ht ## Posts -{% for post_name, post_title in post_info.items() %} -=> {{ post_name }}.gmi {{ post_title }}, {{ post_states[post_name] }} +{% for post_name, post_title in post_info.items() %}=> {{ post_name }}.gmi {{ post_title }}, {{ post_states[post_name] }} {% endfor %}