layout | weight | title | description |
---|---|---|---|
post |
1 |
Title |
This is a post! |
Even though this post is much older than the other, it will appear first in the post list! Magic! Witchcraft!
layout | weight | title | description |
---|---|---|---|
post |
1 |
Title |
This is a post! |
Even though this post is much older than the other, it will appear first in the post list! Magic! Witchcraft!
layout | weight | title | description |
---|---|---|---|
post |
2 |
Title |
This is a post! |
This post is more recent than the other, but it will appear second in the post list! Wowza!
{% for weight in (1..20) %} | |
{% for post in site.posts %} | |
{% if post.weight == weight %} | |
{% if post.categories contains 'work' %} | |
<a href="{{ post.url }}">{{ post.title }}</a> | |
{% endif %} | |
{% endif %} | |
{% endfor %} | |
{% endfor %} |