From 7568cdb2c32d53be64cdf740bc0e9c95f8c9a665 Mon Sep 17 00:00:00 2001 From: nebula Date: Thu, 3 Apr 2025 06:08:53 +0000 Subject: [PATCH] adjustments to gemini place generation --- generate.py | 6 +++++- templates/gemini_main | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/generate.py b/generate.py index 24e1ff4..ef746ef 100644 --- a/generate.py +++ b/generate.py @@ -154,7 +154,11 @@ 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"=> / Index\n=> https://helixnebula.space/{post_name}/ Link to photography.\n\n" + header = f"""=> / Index +## {metadata[post_name]["title"]}, {metadata[post_name]["state"]} +=> https://helixnebula.space/{post_name}/ Link to photography. + +""" 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 bf5eddb..ddb2f8c 100644 --- a/templates/gemini_main +++ b/templates/gemini_main @@ -4,7 +4,7 @@ I have spent countless hours dedicated to enjoying and capturing the natural won ## Gemspace Info -This is my gemspace, where I share stories from my travels. My posts from the http version of helixnebula.space are mirrored here. The http version also includes a very large amount of photography for these locations and more. Here on this space, you will find the stories I have written for those albums. +This is my gemspace, where I share stories from my travels. My posts from the http version of helixnebula.space are mirrored here. The http version also includes a very large amount of photography for these locations and more. Here on this space, you will find the stories I have written for those albums. More of these posts will be written with time, so check back later to see if there is more. => https://helixnebula.space/ View my photography site!