From 53e0749906fc36aaadb5011144d86784999eb9c1 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Tue, 22 Jan 2019 16:57:22 +0100 Subject: [PATCH] Fix post ordering `reverse` is no longer needed with `weight` --- blog/templates/first-edition/index.html | 6 +++--- blog/templates/first-edition/section.html | 2 +- blog/templates/news-section.html | 2 +- blog/templates/second-edition/index.html | 6 +++--- blog/templates/section.html | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/blog/templates/first-edition/index.html b/blog/templates/first-edition/index.html index 9eaa5e40..22a3a33f 100644 --- a/blog/templates/first-edition/index.html +++ b/blog/templates/first-edition/index.html @@ -6,7 +6,7 @@ {% block main %} {% set posts_section = get_section(path = "first-edition/posts/_index.md") %} -{% set posts = posts_section.pages | reverse %} +{% set posts = posts_section.pages %}

This blog series creates a small operating system in the @@ -50,11 +50,11 @@ {% set extra = get_section(path = "first-edition/extra/_index.md") %}

{{ extra.title }}

diff --git a/blog/templates/first-edition/section.html b/blog/templates/first-edition/section.html index 7b8c0c6e..a3c56b85 100644 --- a/blog/templates/first-edition/section.html +++ b/blog/templates/first-edition/section.html @@ -11,7 +11,7 @@ {% block introduction %}{% endblock introduction %}
- {% for page in section.pages|reverse %} + {% for page in section.pages %} {{ macros::post_link(page=page) }} {% endfor %}
diff --git a/blog/templates/news-section.html b/blog/templates/news-section.html index 89d66545..2dc27f79 100644 --- a/blog/templates/news-section.html +++ b/blog/templates/news-section.html @@ -11,7 +11,7 @@ {% block introduction %}{% endblock introduction %}
- {% for page in section.pages|reverse %} + {% for page in section.pages %}

{{ page.title }}