Fixed raw filter

This commit is contained in:
pmoreno 2023-04-17 20:34:15 +02:00
parent 264614762d
commit 3c49ff2772

4
templates/partials/logo.html.twig Normal file → Executable file
View file

@ -1,8 +1,8 @@
{% set logo = theme_var('custom_logo_mobile') ?: theme_var('custom_logo') %}
<a href="{{ home_url }}" class="logo" rel="nofollow" title="{{ site.title }}">
<a href="{{ home_url }}" class="logo" rel="nofollow" title="{{ site.title|raw }}">
{% if logo %}
{% set logo_file = (logo|first).name %}
<img src="{{ url('theme://images/logo/' ~ logo_file) }}" alt="{{ site.title }}"/>
<img src="{{ url('theme://images/logo/' ~ logo_file) }}" alt="{{ site.title|raw }}"/>
{% else %}
{% include('@images/grav-logo.svg') %}
{% endif %}