From 6e35907b4eaba5c5346899d021db7db6eb5c89c2 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Mon, 8 Jun 2020 08:46:33 -0400 Subject: [PATCH] Add `relative_url` filter to author profile image Fixes #125 --- CHANGELOG.md | 1 + _includes/author | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd4bbb1..bd7de67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] - ### Fixed +- Add `relative_url` filter to author profile image. [#125](https://github.com/mmistakes/jekyll-theme-basically-basic/issues/125) - Fix rake vulnerability in `.gemspec` file. ## [1.4.4] - 2019-08-20 diff --git a/_includes/author b/_includes/author index 19bcf68..c8c40ab 100644 --- a/_includes/author +++ b/_includes/author @@ -16,8 +16,8 @@ {% if site.data.authors and site.data.authors[author] %} {% assign author_picture = site.data.authors[author].picture %} {% endif %} - {% unless author_picture contains '://' %}{% assign author_picture = author_picture | relative_url %}{% endunless %} {% endif %} + {% assign author_picture = author_picture | relative_url %} {% if author.twitter %} {% assign author_twitter = author.twitter %} @@ -28,4 +28,4 @@ {% assign author_twitter = site.twitter_username %} {% endif %} {% endif %} -{% endif %} \ No newline at end of file +{% endif %}