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:
parent
ee52bb339c
commit
6d3db3895e
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue