reverse blog index order

This commit is contained in:
ktyl 2022-05-27 01:13:12 +01:00
parent f1a8a18394
commit 13646f649a
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ title_pattern = re.compile("<h1>(.+)</h1>")
# filter posts to just those with a date in them # filter posts to just those with a date in them
posts = [p for p in posts if path_pattern.match(p)] posts = [p for p in posts if path_pattern.match(p)]
posts.reverse()
# for each file we want to output an <a> tag with a relative href to the site root # for each file we want to output an <a> tag with a relative href to the site root
for path in posts: for path in posts: