theme improvments

This commit is contained in:
antilopa 2022-09-22 17:31:37 +02:00
parent fb95ec8626
commit 9f6d28c6be
2 changed files with 3 additions and 18 deletions

View File

@ -3,13 +3,7 @@
{% block content %}
{% if page.header.wider_column == 'left' %}
{% set colsize = ['six', 'five'] %}
{% elseif page.header.wider_column == 'right' %}
{% set colsize = ['five', 'six'] %}
{% else %}
{% set colsize = ['six', 'six'] %}
{% endif %}
{% set colsize = [page.header.leftcol, page.header.rightcol] %}
<section id="{{ page.header.section_id }}" class="two-col">
<div class="row">
@ -20,6 +14,8 @@
{% endfor %}
</div>
</section>
{% include 'modular/ribbon.html.twig' %}
{% endblock %}
</div>

View File

@ -1,13 +1,4 @@
{% block content %}
{% if page.header.section_id %}
<section id="{{ page.header.section_id }}">
{% else %}
<section id="{{ page.slug }}">
{% endif %}
<div class="ribbon">
{{ page.content|raw }}
{% if page.header.ribbon == "left" %}
<img src="user/themes/lacre-basic/images/left_ribbon.png">
{% elseif page.header.ribbon == "right" %}
@ -16,5 +7,3 @@
<img src="user/themes/lacre-basic/images/bottom_ribbon.png">
{% endif %}
</div>
</section>
{% endblock %}