change to adapt to link_func

This commit is contained in:
Guy Godfroy 2020-12-03 18:36:35 +01:00
parent e8d60d0d26
commit cda71c374b
1 changed files with 3 additions and 2 deletions

View File

@ -18,8 +18,9 @@ tpl_path = os.path.expanduser(config.tpl_dir)
os.chdir(md_path) os.chdir(md_path)
def add_ext_gmi(link): def add_ext_gmi(link):
# Custom function to apply to local links # Custom function to apply to links
return link+".gmi" if "://" not in link: # apply only on local links
return link+".gmi"
# Walk through markdown directories # Walk through markdown directories
for dirname, subdirlist, mdlist in os.walk('.'): for dirname, subdirlist, mdlist in os.walk('.'):