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 %}
|
{% block content %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12 col-md-6 mb-2" height="100%">
|
<div class="col-12 col-md-6" height="100%">
|
||||||
<h1>Herzlich Willkommen</h1>
|
<h1 class="d-inline">
|
||||||
|
{% include 'partials/logo.html.twig' with {style: 'height: 3rem; padding-bottom: 0.5rem'} %}
|
||||||
|
Herzlich Willkommen
|
||||||
|
</h1>
|
||||||
<div width="100%">
|
<div width="100%">
|
||||||
{% include 'partials/osm.html.twig' %}
|
{% include 'partials/osm.html.twig' %}
|
||||||
</div>
|
</div>
|
||||||
|
@ -43,4 +46,25 @@ <h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% 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 %}
|
{% endblock %}
|
||||||
|
|
|
@ -22,6 +22,6 @@
|
||||||
<a href="{{ child.url }}">{{ child.title }}</a>
|
<a href="{{ child.url }}">{{ child.title }}</a>
|
||||||
<p>{{ child.summary }}</p>
|
<p>{{ child.summary }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="mb-4"></div>
|
<hr class="mb-4" />
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
<p class="mx-auto">© Heike Tischler</p>
|
<p class="mx-auto">© Heike Tischler</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<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>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,9 +1,12 @@
|
||||||
<a href="{{ home_url }}" class="navbar-brand mr-10">
|
{% set logo = theme_var('custom_logo') %}
|
||||||
{% set logo = theme_var('custom_logo') %}
|
{% if style %}
|
||||||
{% if logo %}
|
{% set style='style="' ~ style ~ '"' %}
|
||||||
|
{% else %}
|
||||||
|
{% set style='' %}
|
||||||
|
{% endif %}
|
||||||
|
{% if logo %}
|
||||||
{% set logo_file = (logo|first).name %}
|
{% set logo_file = (logo|first).name %}
|
||||||
<img src="{{ url('theme://images/logo/' ~ logo_file) }}" />
|
<img {{ style }} src="{{ url('theme://images/logo/' ~ logo_file) }}" />
|
||||||
{% else %}
|
{% else %}
|
||||||
<img src="{{ url('theme://images/ro-logo.svg') }}" />
|
<img {{ style }} src="{{ url('theme://images/ro-logo.svg') }}" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</a>
|
|
||||||
|
|
|
@ -7,7 +7,9 @@
|
||||||
<ul class="sidebar-nav">
|
<ul class="sidebar-nav">
|
||||||
<li class="sidebar-spacer"></li>
|
<li class="sidebar-spacer"></li>
|
||||||
<li class="sidebar-brand">
|
<li class="sidebar-brand">
|
||||||
|
<a href="{{ home_url }}" class="navbar-brand mr-10">
|
||||||
{% include 'partials/logo.html.twig' %}
|
{% include 'partials/logo.html.twig' %}
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% for page in pages.children.visible %}
|
{% for page in pages.children.visible %}
|
||||||
{% set current_page = (page.active or page.activeChild) ? 'selected' : '' %}
|
{% set current_page = (page.active or page.activeChild) ? 'selected' : '' %}
|
||||||
|
|
|
@ -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>
|
<i class="fab fa-facebook-f"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in a new issue