add: logo on home

This commit is contained in:
Tobias Reisinger 2020-01-26 14:23:47 +01:00
parent 9348521308
commit d66637f840
6 changed files with 44 additions and 15 deletions

View file

@ -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 @@ <h3>
</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 %}

View file

@ -22,6 +22,6 @@
<a href="{{ child.url }}">{{ child.title }}</a>
<p>{{ child.summary }}</p>
{% endif %}
<div class="mb-4"></div>
<hr class="mb-4" />
{% endfor %}
{% endblock %}

View file

@ -58,7 +58,7 @@
<p class="mx-auto">&#169; Heike Tischler</p>
</div>
<div class="row">
<p class="mx-auto">Diese Webseite nutzt <a href="http://getgrav.org">Grav</a> von <a href="http://www.rockettheme.com">RocketTheme</a>.</p>
<p class="mx-auto">Diese Webseite nutzt <a target="_blank" href="http://getgrav.org">Grav</a> von <a target="_blank" href="http://www.rockettheme.com">RocketTheme</a>.</p>
</div>
</footer>
{% endblock %}

View file

@ -1,9 +1,12 @@
<a href="{{ home_url }}" class="navbar-brand mr-10">
{% set logo = theme_var('custom_logo') %}
{% if logo %}
{% set logo_file = (logo|first).name %}
<img src="{{ url('theme://images/logo/' ~ logo_file) }}" />
{% else %}
<img src="{{ url('theme://images/ro-logo.svg') }}" />
{% endif %}
</a>
{% set logo = theme_var('custom_logo') %}
{% if style %}
{% set style='style="' ~ style ~ '"' %}
{% else %}
{% set style='' %}
{% endif %}
{% if logo %}
{% set logo_file = (logo|first).name %}
<img {{ style }} src="{{ url('theme://images/logo/' ~ logo_file) }}" />
{% else %}
<img {{ style }} src="{{ url('theme://images/ro-logo.svg') }}" />
{% endif %}

View file

@ -7,7 +7,9 @@
<ul class="sidebar-nav">
<li class="sidebar-spacer"></li>
<li class="sidebar-brand">
{% include 'partials/logo.html.twig' %}
<a href="{{ home_url }}" class="navbar-brand mr-10">
{% include 'partials/logo.html.twig' %}
</a>
</li>
{% for page in pages.children.visible %}
{% set current_page = (page.active or page.activeChild) ? 'selected' : '' %}

View file

@ -1,3 +1,3 @@
<a role="button" class="btn btn-facebook" href="https://www.facebook.com/Reitanlage-Oranienburg-Heike-Tischler-456154271116487/">
<a role="button" class="btn btn-facebook" target="_blank" href="https://www.facebook.com/Reitanlage-Oranienburg-Heike-Tischler-456154271116487/">
<i class="fab fa-facebook-f"></i>
</a>