diff --git a/_includes/tiles.html b/_includes/tiles.html
index 0bf71dc..c301dec 100644
--- a/_includes/tiles.html
+++ b/_includes/tiles.html
@@ -11,7 +11,8 @@
{% endfor %}
- {% elseif site.tiles-source == "pages" %}
+ {% endif %}
+ {% if site.tiles-source == "pages" %}
{% for page in site.pages limit:site.tiles-count %}
@@ -23,6 +24,5 @@
{% endfor %}
- {% else %}
{% endif %}