post url prefix
This commit is contained in:
parent
2ddb5cb04c
commit
5b72735edc
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue