Fix author image URL

The authorImage URL was created like `http://example.comimages/me.png`
missing a slash in between the base URL and the image.

This adds the missing slash.
This commit is contained in:
Nicholas Duffy 2018-09-10 08:51:55 -06:00
parent ee52bb339c
commit 6d3db3895e
No known key found for this signature in database
GPG key ID: 742AD499A2401DF6

View file

@ -7,7 +7,7 @@
</span>
{{ with .Site.Params.authorimage }}
{{ $strippedSlash := ($.Site.Params.authorimage | replaceRE "^(/)+(.*)" "$2") }}
{{ $authorImage := (printf "%s%s" $.Site.BaseURL $strippedSlash) }}
{{ $authorImage := (printf "%s/%s" $.Site.BaseURL $strippedSlash) }}
<div class="author-image">
<img src="{{$authorImage}}" alt="Author Image" class="img--circle img--headshot element--center">
</div>