Skip to content

Commit

Permalink
Fix error when tags contain non-ANSI character
Browse files Browse the repository at this point in the history
  • Loading branch information
Atry committed Jun 23, 2014
1 parent d41558b commit 0cb01f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{% for item in (0..site.tags.size) %}{% unless forloop.last %}
{% capture this_word %}{{ tag_words[item] | strip_newlines }}{% endcapture %}
<li>
<a href="#{{ this_word | cgi_escape }}-ref" data-toggle="tab">
<a href="#{{ this_word | replace:' ','-' }}-ref" data-toggle="tab">
{{ this_word }}<span class="badge pull-right">{{ site.tags[this_word].size }}</span>
</a>
</li>
Expand All @@ -25,7 +25,7 @@
<div class="tab-content col-sm-9 col-xs-6">
{% for item in (0..site.tags.size) %}{% unless forloop.last %}
{% capture this_word %}{{ tag_words[item] | strip_newlines }}{% endcapture %}
<div class="tab-pane" id="{{ this_word | cgi_escape }}-ref">
<div class="tab-pane" id="{{ this_word | replace:' ','-' }}-ref">
<h2 style="margin-top: 0px">Posts tagged with {{ this_word }}</h2>
<ul class="list-unstyled">
{% for post in site.tags[this_word] %}{% if post.title != null %}
Expand Down

0 comments on commit 0cb01f5

Please sign in to comment.