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

github.com/reuixiy/hugo-theme-meme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/utils/images.html')
-rw-r--r--layouts/partials/utils/images.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/utils/images.html b/layouts/partials/utils/images.html
index 5282589..275f46f 100644
--- a/layouts/partials/utils/images.html
+++ b/layouts/partials/utils/images.html
@@ -12,7 +12,7 @@
{{- if and $.Site.Params.enableImageHost $.Site.Params.headAlso -}}
{{- if (eq hugo.Environment "production") -}}
{{- if ne (substr . 0 4) "http" -}}
- {{- $img = printf `%s%s` $.Site.Params.imageHostURL (strings.TrimPrefix "/" $img) -}}
+ {{- $img = printf `%s/%s` (strings.TrimSuffix "/" $.Site.Params.imageHostURL) (strings.TrimPrefix "/" $img) -}}
{{- end -}}
{{- end -}}
{{- end -}}