Only show author image when set

Fixes `{nil, "picture"=>nil"}` in `_layouts/about.html` when author image isn't set in `_config.yml`.

Close #34
This commit is contained in:
Michael Rose 2017-10-19 09:02:41 -04:00
parent e3f6e83e01
commit f42040d513
3 changed files with 11 additions and 2 deletions

View File

@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased] -
### Fixed
- Fixed `{nil, "picture"=>nil"}` in `_layouts/about.html` when author image isn't set. [#34](https://github.com/mmistakes/jekyll-theme-basically-basic/issues/34)
## [1.1.2] - 2017-09-14
### Fixed

View File

@ -12,7 +12,9 @@ layout: default
</div>
<aside class="entry-sidebar">
{% include author %}
<img class="author-picture" src="{{ author_picture }}" alt="{{ author_name }}">
{% if author_picture %}
<img class="author-picture" src="{{ author_picture }}" alt="{{ author_name }}">
{% endif %}
</aside>
</div>

View File

@ -12,7 +12,9 @@ layout: default
</div>
<aside class="entry-sidebar">
{% include author %}
<img class="author-picture" src="{{ author_picture }}" alt="{{ author_name }}">
{% if author_picture %}
<img class="author-picture" src="{{ author_picture }}" alt="{{ author_name }}">
{% endif %}
</aside>
</div>