summaryrefslogtreecommitdiff
path: root/_includes/all-posts.liquid
diff options
context:
space:
mode:
authorAdam Carpenter <53hornet@gmail.com>2019-05-04 11:28:24 -0400
committerAdam Carpenter <53hornet@gmail.com>2019-05-04 11:28:24 -0400
commit37a224065d3dc16e9ac73884f4d297f88d599f29 (patch)
treece21db592daca388bf668dc6055d341903131423 /_includes/all-posts.liquid
parent689e85e78c106cefb6c83bcdbeae565d021d2e96 (diff)
downloadcobalt-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.liquid5
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" }}