Add `relative_url` filter to author profile image

Fixes #125
This commit is contained in:
Michael Rose 2020-06-08 08:46:33 -04:00
parent d2eef1d822
commit 6e35907b4e
2 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased] - ## [Unreleased] -
### Fixed ### 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. - Fix rake vulnerability in `.gemspec` file.
## [1.4.4] - 2019-08-20 ## [1.4.4] - 2019-08-20

View File

@ -16,8 +16,8 @@
{% if site.data.authors and site.data.authors[author] %} {% if site.data.authors and site.data.authors[author] %}
{% assign author_picture = site.data.authors[author].picture %} {% assign author_picture = site.data.authors[author].picture %}
{% endif %} {% endif %}
{% unless author_picture contains '://' %}{% assign author_picture = author_picture | relative_url %}{% endunless %}
{% endif %} {% endif %}
{% assign author_picture = author_picture | relative_url %}
{% if author.twitter %} {% if author.twitter %}
{% assign author_twitter = author.twitter %} {% assign author_twitter = author.twitter %}
@ -28,4 +28,4 @@
{% assign author_twitter = site.twitter_username %} {% assign author_twitter = site.twitter_username %}
{% endif %} {% endif %}
{% endif %} {% endif %}
{% endif %} {% endif %}