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

@ -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>