From d41a284bd2226d90b6a79849bc8dbeb636394859 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 ++++-- docs/_docs/18-history.md | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1681bc4f..9f5ac6d0 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 c6bbefcb..b2aca064 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 %}