bitbadger.solutions-blog-theme/themes/mantraish/layout/_partial/post-categories.pug
Daniel J. Summers 67dcb2f77c Initial import
brought over all the files from the Jekyll version, fixed categories,
reformatted for different markdown processor
2017-09-02 11:49:59 -05:00

8 lines
272 B
Plaintext

- var it = post || page
if it.categories && it.categories.length > 0
- var cats = it.categories.toArray()
for cat in cats
a(href=url_for(cat.path) title='Categorized under ' + cat.name rel='tag')= cat.name
if cats.indexOf(cat) < (cats.length - 1)
= ', '