Skip to content

Instantly share code, notes, and snippets.

@ProgrammerNomad
Last active July 9, 2021 05:15
Show Gist options
  • Save ProgrammerNomad/33a2c96951bbead196bdb5fbe157951e to your computer and use it in GitHub Desktop.
Save ProgrammerNomad/33a2c96951bbead196bdb5fbe157951e to your computer and use it in GitHub Desktop.
jekyll liquid collection sort by published date
<ul>
{% assign sorted = site.collection_name | sort: 'date' | reverse %}
{% for item in sorted %}
<li>{{ item.title }}</li>
{% endfor %}
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment