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 -%}