]> Witch of Git - web/blog/commitdiff
Make webrings sort by title blog
authorCassie Jones <code@witchoflight.com>
Mon, 7 Feb 2022 01:52:26 +0000 (20:52 -0500)
committerCassie Jones <code@witchoflight.com>
Mon, 7 Feb 2022 01:52:26 +0000 (20:52 -0500)
webrings.njk

index eebca40b4c48276a05c1309a0c6ad1c61798437e..459c2a5a9ddc2d2db9b085e5ddff7dc9a7e956ae 100644 (file)
@@ -29,7 +29,7 @@ stamps:
     {% endif %}
 {% endfor %}
 </div></div>
-{% for webring in collections.webrings | reverse %}
+{% for webring in collections.webrings | sort(false, true, 'data.title') %}
 <section>
     <h2 id="{{ webring.data.title | slug }}">{{ webring.data.title }}</h2>
     {% if webring.data.prev or webring.data.next %}