Skip to content

Commit

Permalink
fix(bug): using comma to separate multiple categories
Browse files Browse the repository at this point in the history
  • Loading branch information
yulijia committed Apr 8, 2016
1 parent afc0a81 commit e2d2204
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h1 itemprop="name" class="post-title">{{ page.title }}</h1>
<p class="post-meta">
{{ site.locales[site.default_locale].PostedInCategories }}
{% for cat in page.categories %}
<a href="{{site.baseurl}}/categories/#{{ cat }}">{{ cat }}</a><!--&nbsp;-->
<a href="{{site.baseurl}}/categories/#{{ cat }}">{{ cat }}</a>{% unless page.categories.last == cat %}, {% endunless %}
{% endfor %}
{% if page.tags != empty %}
{{ site.locales[site.default_locale].Taggedwith }}
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h1 itemprop="name" class="post-title">
<p class="post-meta">
{{ site.locales[site.default_locale].PostedInCategories }}
{% for cat in post.categories %}
<a href="{{site.baseurl}}/categories/#{{ cat }}">{{ cat }}</a><!--&nbsp;-->
<a href="{{site.baseurl}}/categories/#{{ cat }}">{{ cat }}</a>{% unless post.categories.last == cat%}, {% endunless %}
{% endfor %}
{% if post.tags != empty %}
{{ site.locales[site.default_locale].Taggedwith }}
Expand Down

0 comments on commit e2d2204

Please sign in to comment.