Make 2021 posts come first on home page

This commit is contained in:
Wesley Moore 2021-08-26 19:38:41 +10:00
parent b86b79c000
commit 0d3db0c69d
No known key found for this signature in database
GPG key ID: BF67766C0BC2D0EE
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,6 @@
+++
title = "Wesley Moore"
[extra]
body_class = "home"
+++

View file

@ -19,7 +19,8 @@
<h2>Recent Posts</h2>
{% 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" %}