Commit 2c2142da authored by Augustin Lemesle's avatar Augustin Lemesle
Browse files

fix _ in tags

parent 88c63975
......@@ -17,16 +17,16 @@
<nav>
{% for category in include.cats %}
<a href="/category/{{ category | downcase }}/index.html" class="btn btnCancel active"><span>{{ category }}</span></a>
<a href="/category/{{ category | downcase | replace: '_', '-' }}/index.html" class="btn btnCancel active"><span>{{ category }}</span></a>
{% endfor %}
{% for category in site.categories %}
{% unless include.cats contains category[0] %}
{% if page.title == category[0] %}
<a href="/category/{{ category[0] | downcase }}/index.html" class="btn btnCancel active"><span>{{ category[0] }}</span></a>
{% else %}
<a href="/category/{{ category[0] | downcase }}/index.html" class="btn btnCancel"><span>{{ category[0] }}</span></a>
{% if site.categories contains page.title %}
<a href="/category/{{ page.title | downcase | replace: '_', '-' }}/index.html" class="btn btnCancel active"><span>{{ page.title }}</span></a>
{% endif %}
{% for category in site.categories %}
{% unless include.cats contains category[0] or page.title == category[0] %}
<a href="/category/{{ category[0] | downcase | replace: '_', '-' }}/index.html" class="btn btnCancel"><span>{{ category[0] }}</span></a>
{% endunless %}
{% endfor %}
</nav>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment