Merge pull request #59 from apreshill/reverse-authorimage-slash
reverse PR that added additional slash to `authorimage` file path
This commit is contained in:
commit
6d6508433d
2 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue