_includes/menu_item.html in no-style-please-0.3.1 vs _includes/menu_item.html in no-style-please-0.4.0

- old
+ new

@@ -1,19 +1,26 @@ <ul> {% for item in include.collection %} <li> - {% if item.url != false %} + {%- if item.url -%} <a href="{{ item.url }}">{{ item.title }}</a> - {% else %} + {%- else -%} {{ item.title }} - {% endif %} + {%- endif -%} </li> - {% if item.post_list == true %} - {% include post_list.html %} + {% if item.post_list %} + {% + include post_list.html + category=item.post_list.category + limit=item.post_list.limit + show_more=item.post_list.show_more + show_more_text=item.post_list.show_more_text + show_more_url=item.post_list.show_more_url + %} {% endif %} - {% if item.entries != blank %} + {% if item.entries %} {% include menu_item.html collection=item.entries %} {% endif %} {% endfor %} </ul> \ No newline at end of file