Skip to content
Snippets Groups Projects
Commit 758f07ca authored by squidfunk's avatar squidfunk Committed by Martin Donath
Browse files

Fixed incorrectly set site url, if given

parent 92d77fd8
Branches
Tags
No related merge requests found
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
<div class="md-flex"> <div class="md-flex">
<div class="md-flex__cell md-flex__cell--shrink"> <div class="md-flex__cell md-flex__cell--shrink">
{% if config.extra.logo %} {% if config.extra.logo %}
<a href="{{ nav.homepage.url }}" title="{{ config.site_name }}" class="md-logo md-header-nav__button"> <a href="{{ config.site_url | default(nav.homepage.url, true) }}" title="{{ config.site_name }}" class="md-logo md-header-nav__button">
<img src="{{ base_url }}/{{ config.extra.logo }}" width="24" height="24"> <img src="{{ base_url }}/{{ config.extra.logo }}" width="24" height="24">
</a> </a>
{% else %} {% else %}
<a href="{{ nav.homepage.url }}" title="{{ config.site_name }}" class="md-icon md-icon--home md-header-nav__button"> <a href="{{ config.site_url | default(nav.homepage.url, true) }}" title="{{ config.site_name }}" class="md-icon md-icon--home md-header-nav__button">
</a> </a>
{% endif %} {% endif %}
</div> </div>
......
...@@ -30,13 +30,15 @@ ...@@ -30,13 +30,15 @@
<!-- Link to home --> <!-- Link to home -->
<div class="md-flex__cell md-flex__cell--shrink"> <div class="md-flex__cell md-flex__cell--shrink">
{% if config.extra.logo %} {% if config.extra.logo %}
<a href="{{ nav.homepage.url }}" title="{{ config.site_name }}" <a href="{{ config.site_url | default(nav.homepage.url, true) }}"
title="{{ config.site_name }}"
class="md-logo md-header-nav__button"> class="md-logo md-header-nav__button">
<img src="{{ base_url }}/{{ config.extra.logo }}" <img src="{{ base_url }}/{{ config.extra.logo }}"
width="24" height="24" /> width="24" height="24" />
</a> </a>
{% else %} {% else %}
<a href="{{ nav.homepage.url }}" title="{{ config.site_name }}" <a href="{{ config.site_url | default(nav.homepage.url, true) }}"
title="{{ config.site_name }}"
class="md-icon md-icon--home md-header-nav__button"> class="md-icon md-icon--home md-header-nav__button">
</a> </a>
{% endif %} {% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment