Fixed logo display when only mobile logo is chosen

This commit is contained in:
pmoreno.rodriguez 2023-02-02 13:36:03 +01:00 committed by GitHub
parent a441ae3020
commit cf01929426
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{% set logo = theme_var(mobile ? 'custom_logo_mobile' : 'custom_logo') %}
{% set logo = theme_var('custom_logo_mobile') ?: theme_var('custom_logo') %}
<a href="{{ home_url }}" class="logo">
{% if logo %}
{% set logo_file = (logo|first).name %}