Closed slrls closed 11 years ago
Alternatively I've raised https://github.com/imathis/octopress/issues/1326 in which case:
<a href="{{ category | category_link_for_name }}"><span class="badge">{{ category }}</span></a>
for https://github.com/alexgaribay/octoflat/blob/master/source/_includes/article.html#L14
and:
{% for category in post.categories %}
<a href="{{ category | category_link_for_name }}"><span class="badge">{{ category }}</span></a>
{% endfor %}
{% else %}
{% for category in page.categories %}
<a href="{{ category | category_link_for_name }}"><span class="badge">{{ category }}</span></a>
{% endfor %}
https://github.com/alexgaribay/octoflat/blob/master/source/_includes/post/categories.html#L4-L10
would do the trick as well.
Hey Alex,
Love the theme! I did, however, notice that my category links were broken. I tend to use long category names with spaces in them, so just having unprocessed {{ category }} in the anchor tags was no good.
How about forcing hyphenation like this? It solved the issue for my site, at least. You can see it in action there.
Thanks!
Scott