Fix empty <img> when site_logo is not assigned

Ref: https://github.com/mmistakes/minimal-mistakes/pull/2026#issuecomment-454809876
This commit is contained in:
Michael Rose
2019-01-16 11:06:54 -05:00
parent c44e65cdec
commit afd8cfd99e
13 changed files with 26 additions and 14 deletions

View File

@ -8,7 +8,7 @@
<div class="masthead__inner-wrap">
<div class="masthead__menu">
<nav id="site-nav" class="greedy-nav">
{% if logo_path %}<a class="site-logo" href="{{ '/' | relative_url }}"><img src="{{ logo_path }}"></a>{% endif %}
{% if site.logo %}<a class="site-logo" href="{{ '/' | relative_url }}"><img src="{{ logo_path }}"></a>{% endif %}
<a class="site-title" href="{{ '/' | relative_url }}">{{ site.masthead_title | default: site.title }}</a>
<ul class="visible-links">
{%- for link in site.data.navigation.main -%}