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

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