First public release
This is the first “finished” bit of code in this project. It’s a snippet you can use to put a list of birds at the bottom of posts on your Jekyll blog.
Copy the code into a post (or more likely, your posts template in _layouts/post.html
) and it will read a list of birds from your YAML front matter and put them into your post, sorted alphabetically.
The code is available in its most up to date form in this Gist, but at the time of writing it looks like this:
Your YAML list can be in a number of formats. I do it like this:
but this is equally valid:
Below is a demo of the output derived from this code: