Skip to content
Snippets Groups Projects
Commit 3a1cecfd authored by Nicholas Mangold's avatar Nicholas Mangold
Browse files

Inline logo SVG.

parent 501bbdbe
No related branches found
No related tags found
1 merge request!11538Inline logo SVG.
...@@ -18,7 +18,11 @@ ...@@ -18,7 +18,11 @@
{% block content %} {% block content %}
{% if site_logo %} {% if site_logo %}
<a href="{{ path('<front>') }}" rel="home"> <a href="{{ path('<front>') }}" rel="home">
<img src="{{ site_logo }}" alt="{{ 'Home'|t }}" fetchpriority="high" /> {% if site_logo|split('.')|last == "svg" %}
{% include site_logo %}
{% else %}
<img src="{{ site_logo }}" alt="{{ 'Home'|t }}" fetchpriority="high" />
{% endif %}
</a> </a>
{% endif %} {% endif %}
{% if site_name %} {% if site_name %}
......
...@@ -18,7 +18,11 @@ ...@@ -18,7 +18,11 @@
<div class="site-branding__inner"> <div class="site-branding__inner">
{% if site_logo %} {% if site_logo %}
<a href="{{ path('<front>') }}" rel="home" class="site-branding__logo"> <a href="{{ path('<front>') }}" rel="home" class="site-branding__logo">
<img src="{{ site_logo }}" alt="{{ 'Home'|t }}" fetchpriority="high" /> {% if site_logo|split('.')|last == "svg" %}
{% include site_logo %}
{% else %}
<img src="{{ site_logo }}" alt="{{ 'Home'|t }}" fetchpriority="high" />
{% endif %}
</a> </a>
{% endif %} {% endif %}
{% if site_name %} {% if site_name %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment