_includes/nav.html in jekyll-theme-simplex-0.9.2 vs _includes/nav.html in jekyll-theme-simplex-0.9.3
- old
+ new
@@ -6,14 +6,12 @@
{% for item in include.nav %}
<li class="item">
<div class="item-controls">
<a href="{{ site.url }}/{{ item.url }}">
- {% for img in site.static_files %}
- {% if img.name == item.icon and img.path contains "img/icons" %}
- <img src="{{ site.url }}/{{ img.path }}"/>
- {% endif %}
- {% endfor %}
+ {% if item.icon != nil %}
+ <img src="{{ site.url }}/{{ item.icon }}"/>
+ {% endif %}
{% if item.hue != nil %}
<p style="color: {{ item.hue }}">{{ item.title }}</p>
{% else %}
<p>{{ item.title }}</p>
{% endif%}
\ No newline at end of file