Managing references in Jekyll

Recently, I wanted to make Jekyll create a references list ala Wikipedia; so I built one. It was actually easier than I thought it would be, though I'm still not 100% happy with the syntax.