if it's not dark, it's not data

dark overlord of data

Ya Sure, You Betcha - It's a Sortin' Huginn Pluginn

24 Decenber 2013

Or plugin. Anyway - Huginn plugin architecture is simple. You only need a module that exposes 1 function that accepts 1 parameter - the site object. Everything else is a property of the site object.

Plugins are called after all the site date, posts, and drafts have been loaded, and before any output has been processed. This makes the sort plugin almost trivial.

First, update config.yml with the sort parameters:

Next, copy the code to the _plugins folder:

Finally, we're going to add this fragment to our template:

I use this to sort the game list on Katra

more...