Skip to content

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

License

Notifications You must be signed in to change notification settings

ekynoxe/JekyllCategoriesTag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages