Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/htr3n/hyde-hyde.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuy Tran <hoang.huy.tran@gmail.com>2019-02-19 02:26:32 +0300
committerGitHub <noreply@github.com>2019-02-19 02:26:32 +0300
commit6d6508433dbcdc3c71b7ac0666c79854cad98236 (patch)
tree004aedff9d211d58bf78e9953220e0caf6052170 /layouts
parent867b28ccb0dd3406adbe2b3c03581dd6de02ed6f (diff)
parente8baa4a3ac4c63b1e764511bdf9e25a198209b31 (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.html2
-rw-r--r--layouts/partials/sidebar/about.html2
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>