diff options
author | Huy Tran <hoang.huy.tran@gmail.com> | 2019-02-19 02:26:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-19 02:26:32 +0300 |
commit | 6d6508433dbcdc3c71b7ac0666c79854cad98236 (patch) | |
tree | 004aedff9d211d58bf78e9953220e0caf6052170 /layouts | |
parent | 867b28ccb0dd3406adbe2b3c03581dd6de02ed6f (diff) | |
parent | e8baa4a3ac4c63b1e764511bdf9e25a198209b31 (diff) |
Merge pull request #59 from apreshill/reverse-authorimage-slash
reverse PR that added additional slash to `authorimage` file path
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/sidebar.html | 2 | ||||
-rw-r--r-- | layouts/partials/sidebar/about.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index c712005..2e33fec 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -8,7 +8,7 @@ {{ if and (isset .Site.Params "authorimage") (not (isset .Site.Params.social "gravatar")) }} {{ 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> diff --git a/layouts/partials/sidebar/about.html b/layouts/partials/sidebar/about.html index 5e93517..26c8b6f 100644 --- a/layouts/partials/sidebar/about.html +++ b/layouts/partials/sidebar/about.html @@ -4,7 +4,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> |