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>
<div class="articles-container"> <div class="articles-container">
<ul> <ul>
{% for article in articles -%} {% for article in articles | sort(attribute="frontmatter.published") | reverse -%}
<a href="/articles/{{ article.link }}"> <a href="/articles/{{ article.link }}">
<li> <li>
{{ front_matter_macro::gen(frontmatter=article.frontmatter, link=article.link) }} {{ front_matter_macro::gen(frontmatter=article.frontmatter, link=article.link) }}