mirror of
https://github.com/wezm/wezm.net.git
synced 2024-11-10 01:42:32 +00:00
Make 2021 posts come first on home page
This commit is contained in:
parent
b86b79c000
commit
0d3db0c69d
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
+++
|
+++
|
||||||
title = "Wesley Moore"
|
title = "Wesley Moore"
|
||||||
|
|
||||||
[extra]
|
[extra]
|
||||||
body_class = "home"
|
body_class = "home"
|
||||||
+++
|
+++
|
||||||
|
|
|
@ -19,7 +19,8 @@
|
||||||
<h2>Recent Posts</h2>
|
<h2>Recent Posts</h2>
|
||||||
|
|
||||||
{% set section = get_section(path="posts/_index.md") %}
|
{% 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) %}
|
{% set section = get_section(path=sub) %}
|
||||||
{% for page in section.pages %}
|
{% for page in section.pages %}
|
||||||
{% include "article.html" %}
|
{% include "article.html" %}
|
||||||
|
|
Loading…
Reference in a new issue