From 4beeadc6f401b31321eb6abc559b2250ab3dc303 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Wed, 23 Jan 2019 20:05:17 -0500 Subject: [PATCH] Fix `site.logo` false positives --- CHANGELOG.md | 1 + _includes/masthead.html | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1681bc4..9f5ac6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ### Bug Fixes +- Fix `site.logo` false positives. [#2026](https://github.com/mmistakes/minimal-mistakes/pull/2026#issuecomment-455770730) - Add empty `alt` attribute to `site.logo` image. [#2035](https://github.com/mmistakes/minimal-mistakes/pull/2035) ## [4.15.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.15.1) diff --git a/_includes/masthead.html b/_includes/masthead.html index c6bbefc..b2aca06 100644 --- a/_includes/masthead.html +++ b/_includes/masthead.html @@ -1,14 +1,16 @@ {% if site.logo contains "://" %} {% capture logo_path %}{{ site.logo }}{% endcapture %} {% else %} - {% capture logo_path %}{{ site.logo | relative_url }}{% endcapture %} + {% capture logo_path %}{{ site.logo }}{% endcapture %} {% endif %}