post url prefix

This commit is contained in:
ktyl 2023-03-13 23:34:21 +00:00
parent 2ddb5cb04c
commit 5b72735edc
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ for path in posts:
# clean leading directories to get the relative path we'll use for the link
url = re.sub(dir_pattern, r"\2", path)
url = f"blog/{url}"
item = (date, f'<li><a href="{url}">{date}{title}</a></li>')
links.append(item)