mirror of https://gitlab.com/bashrc2/epicyon
Markdown blog filenames
parent
187ebd3ac6
commit
2b331c5479
|
|
@ -112,7 +112,7 @@ def blog_to_gemini(base_dir: str, nickname: str, domain: str,
|
|||
|
||||
# replace any excessive lines
|
||||
for _ in range(2):
|
||||
content_text = content_text.replace('\n\n', '\n')
|
||||
content_text = content_text.replace('\n\n\n', '\n\n')
|
||||
|
||||
# add links to the end of the content
|
||||
if links:
|
||||
|
|
|
|||
2
utils.py
2
utils.py
|
|
@ -2268,6 +2268,7 @@ def get_gemini_blog_filename(base_dir: str, nickname: str, domain: str,
|
|||
return ''
|
||||
title_text2 = title_text.replace('.', ' ')
|
||||
title_text2 = title_text2.replace(' ', '_')
|
||||
title_text2 = title_text2.replace('"', '')
|
||||
|
||||
if not testing:
|
||||
account_dir = acct_dir(base_dir, nickname, domain)
|
||||
|
|
@ -2292,6 +2293,7 @@ def get_markdown_blog_filename(base_dir: str, nickname: str, domain: str,
|
|||
return ''
|
||||
title_text2 = title_text.replace('.', ' ')
|
||||
title_text2 = title_text2.replace(' ', '_')
|
||||
title_text2 = title_text2.replace('"', '')
|
||||
|
||||
if not testing:
|
||||
account_dir = acct_dir(base_dir, nickname, domain)
|
||||
|
|
|
|||
Loading…
Reference in New Issue