<!-- Sort modified posts by last_modified_at in descending order -->
{% assign sorted_modified_posts = modified_posts | sort: 'last_modified_at' | reverse %}
<!-- Sort unmodified posts by date in descending order -->
{% assign sorted_unmodified_posts = unmodified_posts | sort: 'date' | reverse %}
<!-- Concatenate the two sorted lists -->
{% assign all_sorted_posts = sorted_modified_posts | concat: sorted_unmodified_posts %}
<!-- Loop through all sorted posts and display them -->
{% for post in all_sorted_posts %}
<article>
<time datetime="{{ post.date | date: '%Y-%m-%d' }}" class="post-date">
<img src="https://raw.githubusercontent.com/marioseixas/marioseixas.github.io/main/assets/gold.ico" alt="favicon">
{{ post.date | date: '%Y-%m-%d' }}
{% if post.last_modified_at != post.date %}
↣
{{ post.last_modified_at | date_to_string }}
{% else %}
↣
{{ post.date | date_to_string }}
{% endif %}
<h3 class="search-link">
<a href="{{ post.url }}">
{{ post.title }}
</a>
</h3>
</time>
</article>
{% endfor %}
</section>