|
@@ -32,11 +32,14 @@
|
|
|
|
|
|
{% embed 'partials/layout.html.twig' with {blog: page} %}
|
|
{% embed 'partials/layout.html.twig' with {blog: page} %}
|
|
{% block item %}
|
|
{% block item %}
|
|
-
|
|
|
|
<div class="bricklayer">
|
|
<div class="bricklayer">
|
|
- {% for child in collection %}
|
|
|
|
- {% include 'partials/blog-list-item.html.twig' with {blog: page, page: child} %}
|
|
|
|
- {% endfor %}
|
|
|
|
|
|
+ {% for child in collection %}
|
|
|
|
+
|
|
|
|
+ {% if child.template == 'item' %}
|
|
|
|
+ {% include 'partials/blog-list-item.html.twig' with {blog: page, page: child} %}
|
|
|
|
+ {% endif %}
|
|
|
|
+
|
|
|
|
+ {% endfor %}
|
|
</div>
|
|
</div>
|
|
|
|
|
|
{% if show_pagination and config.plugins.pagination.enabled and collection.params.pagination %}
|
|
{% if show_pagination and config.plugins.pagination.enabled and collection.params.pagination %}
|
|
@@ -48,7 +51,9 @@
|
|
{% endblock %}
|
|
{% endblock %}
|
|
|
|
|
|
{% block sidebar %}
|
|
{% block sidebar %}
|
|
- {% include 'partials/sidebar.html.twig' %}
|
|
|
|
|
|
+ {% if header.show_sidebar == true %}
|
|
|
|
+ {% include 'partials/sidebar.html.twig' %}
|
|
|
|
+ {% endif %}
|
|
{% endblock %}
|
|
{% endblock %}
|
|
{% endembed %}
|
|
{% endembed %}
|
|
</section>
|
|
</section>
|
|
@@ -58,6 +63,3 @@
|
|
var bricklayer = new Bricklayer(document.querySelector('.bricklayer'))
|
|
var bricklayer = new Bricklayer(document.querySelector('.bricklayer'))
|
|
</script>
|
|
</script>
|
|
{% endblock %}
|
|
{% endblock %}
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|