1
0
Fork 0

Try to sanitize the category output

This commit is contained in:
Luca Beltrame 2015-05-24 16:40:55 +02:00
parent de779761c6
commit 00666f41d6

View file

@ -10,21 +10,21 @@ header:
<div id="blog-index" class="row">
<div class="small-12 columns t30">
<h1>{{ page.title }}</h1>
{% if page.teaser %}<p class="teaser">{{ page.teaser }}</p>{% endif %}
<dl class="accordion" data-accordion>
{% for category in site.categories %}>
{% categorylink category[0] %}<strong>
{% if category[0] == "kde" or category[0] == "s.t.e.a.l." %}
{{ category[0] | upcase }}
{% elsif category[0] contains "final fantasy" %}
{{ category[0] | capitalize_all | replace:'Xi','XI' | replace:'v','V'}}
{% else %}
{{ category[0] | capitalize_all }}
{% endif %}
</strong><br><br>
{% endcategorylink %}
{% endfor %}
<ul class="side-nav">
{% for category in site.categories %}
<li>
{% categorylink category[0] %}<strong>
{% if category[0] == "kde" or category[0] == "s.t.e.a.l." %}
{{ category[0] | upcase }}
{% elsif category[0] contains "final fantasy" %}
{{ category[0] | capitalize_all | replace:'Xi','XI' | replace:'v','V'}}
{% else %}
{{ category[0] | capitalize_all }}
{% endif %}
</strong>
{% endcategorylink %}
</li>
{% endfor %}
</dl>
</div><!-- /.small-12.columns -->
</div><!-- /.row -->