jekyll-categories icon indicating copy to clipboard operation
jekyll-categories copied to clipboard

Fix categories with spaces as the context[@category] also needs converting

Open andruby opened this issue 12 years ago • 2 comments

When using this code, the category url did not replace spaces with dashes. The added parentheses in this pull request resolved the issue.

{% for category in site.categories %}
  <a href="{% category_url category.first %}">{{ category.first }}</a>
{% endfor %}

andruby avatar Sep 05 '13 12:09 andruby

Do it! :bowtie:

iamsebastian avatar Jan 15 '15 22:01 iamsebastian

@zroger any idea why this isn't merged ? I'm actually having the problem, category_url do not lowercase and replace spaces by -.

alain-andre avatar Aug 16 '17 14:08 alain-andre