adjustments to gemini place generation

This commit is contained in:
nebula 2025-04-03 06:08:53 +00:00
parent 5eb3cabb31
commit 7568cdb2c3
2 changed files with 6 additions and 2 deletions

View File

@ -154,7 +154,11 @@ def render_gemini_places():
content = f.read() content = f.read()
process = Popen(["gemgen"], stdout=PIPE, stdin=PIPE, stderr=PIPE, text=True) process = Popen(["gemgen"], stdout=PIPE, stdin=PIPE, stderr=PIPE, text=True)
with open(gemini_out_dir + post_name + ".gmi", "w") as f: 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 = process.communicate(input=content)[0]
gemtext_with_local_urls = name_from_url.sub(sub_http_local_urls, gemtext) gemtext_with_local_urls = name_from_url.sub(sub_http_local_urls, gemtext)
f.write(header + gemtext_with_local_urls) f.write(header + gemtext_with_local_urls)

View File

@ -4,7 +4,7 @@ I have spent countless hours dedicated to enjoying and capturing the natural won
## Gemspace Info ## 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! => https://helixnebula.space/ View my photography site!