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/)
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
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
|
## [1.1.2] - 2017-09-14
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -12,7 +12,9 @@ layout: default
|
||||||
</div>
|
</div>
|
||||||
<aside class="entry-sidebar">
|
<aside class="entry-sidebar">
|
||||||
{% include author %}
|
{% include author %}
|
||||||
|
{% if author_picture %}
|
||||||
<img class="author-picture" src="{{ author_picture }}" alt="{{ author_name }}">
|
<img class="author-picture" src="{{ author_picture }}" alt="{{ author_name }}">
|
||||||
|
{% endif %}
|
||||||
</aside>
|
</aside>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,9 @@ layout: default
|
||||||
</div>
|
</div>
|
||||||
<aside class="entry-sidebar">
|
<aside class="entry-sidebar">
|
||||||
{% include author %}
|
{% include author %}
|
||||||
|
{% if author_picture %}
|
||||||
<img class="author-picture" src="{{ author_picture }}" alt="{{ author_name }}">
|
<img class="author-picture" src="{{ author_picture }}" alt="{{ author_name }}">
|
||||||
|
{% endif %}
|
||||||
</aside>
|
</aside>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue