reverse PR that added additional slash

This commit is contained in:
Alison Hill 2018-12-14 09:05:23 -08:00
parent 8edca610b2
commit e8baa4a3ac
2 changed files with 2 additions and 2 deletions

View file

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

View file

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