add: templates

This commit is contained in:
Tobias Reisinger 2020-01-25 03:39:55 +01:00
parent 0bb3d93704
commit 5ad37ff475
10 changed files with 90 additions and 7 deletions

View file

@ -1,9 +1,9 @@
{% set logo = theme_var(mobile ? 'custom_logo_mobile' : 'custom_logo') %}
<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) }}" />
{% set logo_file = (logo|first).name %}
<img src="{{ url('theme://images/logo/' ~ logo_file) }}" />
{% else %}
<img src="{{ url('theme://images/ro-logo.svg') }}" />
<img src="{{ url('theme://images/ro-logo.svg') }}" />
{% endif %}
</a>