mojombo/jekyll — pull request #650 by mbland (2012-09-30 16:20:28+00:00)
Title: Add site.tag_names template data

I use this to generate http://mike-bland.com/tags/, using the following template (formatted for readability):

{% for tag in site.tag_names %}
{{ tag }}

{% assign n = site.tags[tag].size %}
{{ n }} post{% unless n == 1 %}s{% endunless %}

{% endfor %}

I tried using site.tags.keys, but it didn't work out of the box, and I couldn't find a way via plugins to achieve the effect I wanted.

Thanks,

Mike