Format entry links correctly when --directory is used.

This commit is contained in:
Solderpunk 2020-03-18 19:01:32 +01:00
parent d43bd2b0bf
commit 9509bb9429
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ def populate_entry_from_file(filename, base_url, entry):
FeedGenerator entry object according the contents of the named
Gemini file and the base URL.
"""
url = urljoin(base_url, filename)
url = urljoin(base_url, os.path.basename(filename))
entry.guid(url)
entry.link(href=url, rel="alternate")
updated = os.path.getctime(filename)