add: logo on home
This commit is contained in:
parent
9348521308
commit
d66637f840
6 changed files with 44 additions and 15 deletions
|
@ -2,8 +2,11 @@
|
|||
|
||||
{% block content %}
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-6 mb-2" height="100%">
|
||||
<h1>Herzlich Willkommen</h1>
|
||||
<div class="col-12 col-md-6" height="100%">
|
||||
<h1 class="d-inline">
|
||||
{% include 'partials/logo.html.twig' with {style: 'height: 3rem; padding-bottom: 0.5rem'} %}
|
||||
Herzlich Willkommen
|
||||
</h1>
|
||||
<div width="100%">
|
||||
{% include 'partials/osm.html.twig' %}
|
||||
</div>
|
||||
|
@ -43,4 +46,25 @@
|
|||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% set collection = page.collection() %}
|
||||
{% for child in collection %}
|
||||
<hr class="mb-4" />
|
||||
{% if child.template == 'info' %}
|
||||
<div class="row">
|
||||
{% set text_class = 'col-12' %}
|
||||
{% if child.media.images|first %}
|
||||
{% set text_class = 'col-12 col-md-9' %}
|
||||
<div class="col-12 col-md-3">
|
||||
<img width="100%" src="{{ child.media.images|first.url }}">
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="{{ text_class }}">
|
||||
{{ child.content }}
|
||||
</div>
|
||||
</div>
|
||||
{% else %}
|
||||
<a href="{{ child.url }}">{{ child.title }}</a>
|
||||
<p>{{ child.summary }}</p>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue