Skip to content

Commit

Permalink
Fixed defect "Avatar image broken when baseurl set to blank. wowtheme…
Browse files Browse the repository at this point in the history
…snet#20"

prefixed site.url to load the image when baseurl is blank.
Although is working fine but an extra forward slash exists in the image path.
  • Loading branch information
nishjeki committed Oct 23, 2019
1 parent bed1f3c commit c4fac6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<h1 class="display-4 mb-4 article-headline">{{ page.title }}</h1>
<div class="d-flex align-items-center">
{% if author.avatar %}
<img class="rounded-circle" src="{{site.baseurl}}/{{author.avatar}}" alt="{{author.name}}" width="70"/>
<img class="rounded-circle" src="{{site.url}}{{site.baseurl}}/{{author.avatar}}" alt="{{author.name}}" width="70"/>
{% endif %}
<small class="ml-3"> {{ author.name }} <span><a target="_blank" href="{{ author.twitter }}" class="btn btn-outline-success btn-sm btn-round ml-1">Follow</a></span>
<span class="text-muted d-block mt-1">{{ page.date | date: '%b %d, %Y' }} · {% include meta-read-time.html %}</span>
Expand Down Expand Up @@ -110,7 +110,7 @@ <h5 class="font-weight-bold">Join Newsletter</h5>
<div class="row mt-5">
<div class="col-md-2 align-self-center">
{% if author.avatar %}
<img class="rounded-circle" src="{{site.baseurl}}/{{author.avatar}}" alt="{{author.name}}" width="90"/>
<img class="rounded-circle" src="{{site.url}}{{site.baseurl}}/{{author.avatar}}" alt="{{author.name}}" width="90"/>
{% endif %}
</div>
<div class="col-md-10">
Expand Down

0 comments on commit c4fac6c

Please sign in to comment.