diff options
author | Adam Carpenter <53hornet@gmail.com> | 2019-05-04 11:28:24 -0400 |
---|---|---|
committer | Adam Carpenter <53hornet@gmail.com> | 2019-05-04 11:28:24 -0400 |
commit | 37a224065d3dc16e9ac73884f4d297f88d599f29 (patch) | |
tree | ce21db592daca388bf668dc6055d341903131423 /_includes/all-posts.liquid | |
parent | 689e85e78c106cefb6c83bcdbeae565d021d2e96 (diff) | |
download | cobalt-site-37a224065d3dc16e9ac73884f4d297f88d599f29.tar.xz cobalt-site-37a224065d3dc16e9ac73884f4d297f88d599f29.zip |
Posts on journal page are chronological, with most recent at the top.
Diffstat (limited to '_includes/all-posts.liquid')
-rw-r--r-- | _includes/all-posts.liquid | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/_includes/all-posts.liquid b/_includes/all-posts.liquid index f8377b1..ef05295 100644 --- a/_includes/all-posts.liquid +++ b/_includes/all-posts.liquid @@ -4,9 +4,10 @@ </p> <ul class="menu-list"> - {% for post in collections.posts.pages %} + {% assign posts = collections.posts.pages | reverse %} + {% for post in posts %} <li> - <a href="{{ post.permalink }}"> + <a href="/{{ post.permalink }}"> {% if post.published_date %} <span class="tag"> {{ post.published_date | date: "%e %b %Y" }} |