form + archi

This commit is contained in:
2019-10-16 18:36:23 +02:00
parent 49539d7e82
commit 729e8469b1
23 changed files with 334 additions and 63 deletions
@@ -32,11 +32,14 @@
{% embed 'partials/layout.html.twig' with {blog: page} %}
{% block item %}
<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>
{% if show_pagination and config.plugins.pagination.enabled and collection.params.pagination %}
@@ -48,7 +51,9 @@
{% endblock %}
{% block sidebar %}
{% include 'partials/sidebar.html.twig' %}
{% if header.show_sidebar == true %}
{% include 'partials/sidebar.html.twig' %}
{% endif %}
{% endblock %}
{% endembed %}
</section>
@@ -58,6 +63,3 @@
var bricklayer = new Bricklayer(document.querySelector('.bricklayer'))
</script>
{% endblock %}
@@ -1,6 +1,13 @@
{% set feed_url = blog.url == '/' or blog.url == base_url_relative ? (base_url_relative~'/'~blog.slug) : blog.url %}
{% set new_base_url = blog.url == '/' ? '' : blog.url %}
{% if condition %}{% endif %}
<div class="sidebar-content">
{% for child in collection %}
{% include 'partials/blog/title.html.twig' with {blog: page, page: child} %}
{% endfor %}
</div>
{% if config.plugins.simplesearch.enabled %}
<div class="sidebar-content">
{% include 'partials/simplesearch_searchbox.html.twig' %}