fix: make articles page sort by date of publication
This commit is contained in:
parent
41962672c5
commit
dd69153e99
@ -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) }}
|
||||||
|
Loading…
Reference in New Issue
Block a user