Try to sanitize the category output
This commit is contained in:
		
					parent
					
						
							
								de779761c6
							
						
					
				
			
			
				commit
				
					
						00666f41d6
					
				
			
		
					 1 changed files with 15 additions and 15 deletions
				
			
		|  | @ -10,21 +10,21 @@ header: | ||||||
| <div id="blog-index" class="row"> | <div id="blog-index" class="row"> | ||||||
| 	<div class="small-12 columns t30"> | 	<div class="small-12 columns t30"> | ||||||
| 		<h1>{{ page.title }}</h1> | 		<h1>{{ page.title }}</h1> | ||||||
| 		{% if page.teaser %}<p class="teaser">{{ page.teaser }}</p>{% endif %} | 		<ul class="side-nav"> | ||||||
| 
 |                     {% for category in site.categories %} | ||||||
| 		<dl class="accordion" data-accordion> |                     <li> | ||||||
| 			{% for category in site.categories %}> |                         {% categorylink category[0] %}<strong> | ||||||
|                            {% categorylink category[0] %}<strong> |                         {% if category[0] == "kde" or category[0] == "s.t.e.a.l." %} | ||||||
|                             {% if category[0] == "kde" or category[0] == "s.t.e.a.l." %} |                             {{ category[0] | upcase }} | ||||||
|                                 {{ category[0] | upcase }} |                         {% elsif category[0] contains "final fantasy" %} | ||||||
|                             {% elsif category[0] contains "final fantasy" %} |                             {{ category[0] | capitalize_all | replace:'Xi','XI' | replace:'v','V'}} | ||||||
|                                 {{ category[0] | capitalize_all | replace:'Xi','XI' | replace:'v','V'}} |                         {% else %} | ||||||
|                             {% else %} |                             {{ category[0] | capitalize_all }} | ||||||
|                                 {{ category[0] | capitalize_all }} |                         {% endif %} | ||||||
|                             {% endif %} |                             </strong> | ||||||
|                                 </strong><br><br> |                         {% endcategorylink %} | ||||||
|                             {% endcategorylink %} |                     </li> | ||||||
|                     {% endfor %} |                 {% endfor %} | ||||||
| 		</dl> | 		</dl> | ||||||
| 	</div><!-- /.small-12.columns --> | 	</div><!-- /.small-12.columns --> | ||||||
| </div><!-- /.row --> | </div><!-- /.row --> | ||||||
		Reference in a new issue