Skip to content

Instantly share code, notes, and snippets.

@thomo
Last active September 13, 2015 17:31
Show Gist options
  • Save thomo/6cd23ba5100636c07d37 to your computer and use it in GitHub Desktop.
Save thomo/6cd23ba5100636c07d37 to your computer and use it in GitHub Desktop.
Jekyll code to generate a glossary
Example data like: https://gist.github.com/ThoMo/fb3cb24dc8d14a53af97
<table>
<thead><tr><th>Term</th><th>Description</th></tr></thead>
<tbody>
{% assign gs = site.data.glossary | sort:[0] %}
{% for kv in gs %}
<tr> <td>{{ kv[0] }} </td><td> {{ kv[1] }} </td></tr>
{% endfor %}
</tbody>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment