A Plugin that registers a liquid tag {% categories %} so you can show a list of all categories your posts have in their YAML front matter
You can pass an optional argument that will be the syntax used to output each category item, with placeholders for the category name and a category link built from the site's configuration value from your _config.yml file as one of those two syntaxes:
category_path: /categories
category_path: /categories/:cat
- The name place holder is [[name]]
- The link place holder is [[link]]
Examples of use:
Print a comma separated string of all categories names
{% categories %}
Print an unordered list of categories links.
- {% categories
- [[name]] %}
Please note that the list will be alphabetically ordered anyway, the html output is up to you.
Mathieu Davy :: [email protected] :: @ekynoxe
Copyright (c) 2014 Mathieu Davy. See Licence for details.