Reverse order of articles on navbar

This commit is contained in:
2020-03-14 21:09:48 +00:00
parent 381fb8420b
commit 4652990056
18 changed files with 1414 additions and 1414 deletions

View File

@@ -16,10 +16,10 @@
{% if site.articles %}
<div class="mdc-list-group">
<h3 class="mdc-typography--headline7">Articles</h3>
{% for article in site.articles %}
{% for article in site.articles reversed %}
{% assign currentdate = article.date | date: "%Y" %}
{% if currentdate != date %}
{% if article.url != site.articles.first.url %}
{% if article.url != site.articles.last.url %}
</div>
{% endif %}
<div class="mdc-list-group">
@@ -34,7 +34,7 @@
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">assignment</i>
<span class="mdc-list-item__text">{{ article.title }}</span>
</a>
{% if article.url == site.articles.last.url %}
{% if article.url == site.articles.first.url %}
</div>
{% endif %}
{% endfor %}