Skip to content

Commit

Permalink
Edit tags
Browse files Browse the repository at this point in the history
  • Loading branch information
willianjusten committed Nov 29, 2015
1 parent 14f16ea commit e74d171
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

<div class="tags">
{% for tag in post.tags %}
<a href="{{ baseurl }}/tags/#{{tag}}">{{ tag }}</a>
<a href="{{ baseurl }}/tags/#{{tag | slugify }}">{{ tag }}</a>
{% endfor %}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion series.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
---

{% for tag in site.categories %}
<span class="tag-title" id="{{ tag[0] }}">{{ tag[0] | capitalize }}</span>
<span class="tag-title" id="{{ tag[0] | slugify }}">{{ tag[0] | capitalize }}</span>
<ul class="post-list">
{% assign pages_list = tag[1] %}
{% for post in pages_list reversed %}
Expand Down
6 changes: 3 additions & 3 deletions tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
{% assign tags_list = site.tags %}
{% if tags_list.first[0] == null %}
{% for tag in tags_list %}
<a data-scroll href="#{{ tag }}">{{ tag }}</a>
<a data-scroll href="#{{ tag | slugify }}">{{ tag }}</a>
{% endfor %}
{% else %}
{% for tag in tags_list %}
<a data-scroll href="#{{ tag[0] }}">{{ tag[0] }}</a>
<a data-scroll href="#{{ tag[0] | slugify }}">{{ tag[0] }}</a>
{% endfor %}
{% endif %}
{% assign tags_list = nil %}
</div>

{% for tag in site.tags %}
<span class="tag-title" id="{{ tag[0] }}">{{ tag[0] }}</span>
<span class="tag-title" id="{{ tag[0] | slugify }}">{{ tag[0] }}</span>
<ul class="post-list">
{% assign pages_list = tag[1] %}
{% for post in pages_list reversed %}
Expand Down

0 comments on commit e74d171

Please sign in to comment.