add: logo on home
This commit is contained in:
parent
9348521308
commit
d66637f840
6 changed files with 44 additions and 15 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue