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:
parent
e3f6e83e01
commit
f42040d513
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue