Fix redirect again

This commit is contained in:
Stavros Korokithakis 2020-11-20 21:54:18 +02:00
parent 87fc5a315b
commit 3ad2c40646
No known key found for this signature in database
GPG Key ID: 26EA345ECD4C2A63
2 changed files with 2 additions and 2 deletions

View File

@ -1,3 +1,3 @@
+++
redirect_to = "welcome"
redirect_to = "welcome/stavros-notes/"
+++

View File

@ -36,7 +36,7 @@ class JoplinExporter:
self.content_dir.mkdir()
self.static_dir.mkdir()
with open(self.content_dir / "_index.md", mode="w") as outfile:
outfile.write('+++\nredirect_to = "welcome"\n+++')
outfile.write('+++\nredirect_to = "welcome/stavros-notes/"\n+++')
def resolve_note_links(self, note: Note) -> str:
def replacement(match):