Commit 44e6b25b authored by berumuron's avatar berumuron
Browse files

imp: Sort articles before writting them

It's just to make sure that the articles are sorted on the output
so it's easier to find the link when calling the boop command.
parent 97da636f
...@@ -109,6 +109,7 @@ def main(environment): ...@@ -109,6 +109,7 @@ def main(environment):
utils.write_content(page, output_path) utils.write_content(page, output_path)
print(f"Written page: {page.url()}") print(f"Written page: {page.url()}")
articles.sort(key=lambda article: article.date(), reverse=True)
for article in articles: for article in articles:
utils.write_content(article, output_path) utils.write_content(article, output_path)
print(f"Written article: {article.url()}") print(f"Written article: {article.url()}")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment