From 0d3db0c69d4080a78c98440ffe7e0fb4fa2ece8e Mon Sep 17 00:00:00 2001 From: Wesley Moore Date: Thu, 26 Aug 2021 19:38:41 +1000 Subject: [PATCH] Make 2021 posts come first on home page --- v2/content/_index.md | 1 + v2/templates/index.html | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/v2/content/_index.md b/v2/content/_index.md index df25449..155ab9c 100644 --- a/v2/content/_index.md +++ b/v2/content/_index.md @@ -1,5 +1,6 @@ +++ title = "Wesley Moore" + [extra] body_class = "home" +++ diff --git a/v2/templates/index.html b/v2/templates/index.html index 2bfe060..55b8aa7 100644 --- a/v2/templates/index.html +++ b/v2/templates/index.html @@ -19,7 +19,8 @@

Recent Posts

{% set section = get_section(path="posts/_index.md") %} - {% for sub in section.subsections %} + {% set subsections = section.subsections | reverse %} + {% for sub in subsections %} {% set section = get_section(path=sub) %} {% for page in section.pages %} {% include "article.html" %}