Lego2012
2/2/2017 - 3:56 PM

Sorting Posts by Something Other Than Date

Sorting Posts by Something Other Than Date

<!--
Assuming that each of your posts has a weight value set in its frontmatter, you can do the following. You can sort by any frontmatter value
-->

{% assign posts_list = site.posts | sort:"weight" %}
{% for posts in posts_list %}
  ...
{% endfor %}