fix gemini index spacing
This commit is contained in:
		
							parent
							
								
									8eb7deb464
								
							
						
					
					
						commit
						5eb3cabb31
					
				@ -154,7 +154,7 @@ 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"=> 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 = 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)
 | 
				
			||||||
 | 
				
			|||||||
@ -10,6 +10,5 @@ This is my gemspace, where I share stories from my travels. My posts from the ht
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
## Posts
 | 
					## Posts
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% for post_name, post_title in post_info.items() %}
 | 
					{% for post_name, post_title in post_info.items() %}=> {{ post_name }}.gmi {{ post_title }}, {{ post_states[post_name] }}
 | 
				
			||||||
=> {{ post_name }}.gmi {{ post_title }}, {{ post_states[post_name] }}
 | 
					 | 
				
			||||||
{% endfor %}
 | 
					{% endfor %}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user