fix: make articles page sort by date of publication

This commit is contained in:
Price Hiller 2023-08-29 15:25:17 -05:00
parent 41962672c5
commit dd69153e99
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -16,7 +16,7 @@
</div>
<div class="articles-container">
<ul>
{% for article in articles -%}
{% for article in articles | sort(attribute="frontmatter.published") | reverse -%}
<a href="/articles/{{ article.link }}">
<li>
{{ front_matter_macro::gen(frontmatter=article.frontmatter, link=article.link) }}
@ -27,4 +27,4 @@
</div>
{% include "footer.html" %}
</body>
</html>
</html>