Skip to content

Latest commit

 

History

History
40 lines (20 loc) · 1.1 KB

README.md

File metadata and controls

40 lines (20 loc) · 1.1 KB

JekyllCategoriesTag

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.

Please note that the list will be alphabetically ordered anyway, the html output is up to you.

Author

Mathieu Davy :: hello@ekynoxe.com :: @ekynoxe

Copyright

Copyright (c) 2014 Mathieu Davy. See Licence for details.