From d8f85bddcdb54b7e129257da0882caeb785a0f70 Mon Sep 17 00:00:00 2001 From: Erick Ruiz de Chavez Date: Sun, 12 Jan 2025 10:09:12 -0500 Subject: [PATCH] Add missing gemlog; fix gemlog sort --- gemlog.gmi | 3 +++ templates/gemlog.jinja | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 gemlog.gmi diff --git a/gemlog.gmi b/gemlog.gmi new file mode 100644 index 0000000..6e59b6a --- /dev/null +++ b/gemlog.gmi @@ -0,0 +1,3 @@ +--- +template: gemlog +--- diff --git a/templates/gemlog.jinja b/templates/gemlog.jinja index c4d59b1..7ea1475 100644 --- a/templates/gemlog.jinja +++ b/templates/gemlog.jinja @@ -3,7 +3,7 @@ {% if stargem.posts -%} ## Posts -{% for post in stargem.posts -%} +{% for post in (stargem.posts | sort(attribute='frontmatter.date', reverse=True)) -%} => {{ post.path }} {{ post.frontmatter.date.strftime('%F') }} {{ post.frontmatter.title }} {% endfor -%} {% endif -%}