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

github.com/AmazingRise/hugo-theme-diary.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoramazingrise <8315221+AmazingRise@users.noreply.github.com>2019-11-23 14:52:03 +0300
committeramazingrise <8315221+AmazingRise@users.noreply.github.com>2019-11-23 14:52:03 +0300
commit8799ffe2da642b82fa0984fb1a2060147109a207 (patch)
treef2edf632f4afae35aae48c9365834064695634c1 /layouts/index.html
parentbc48c0bc62807239296493fc1a6428a177c381ec (diff)
Fixed the issue caused by URL.
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 8e06cdb..016f063 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -19,10 +19,11 @@
{{ .PublishDate.Format "2006-01-02" }}
</div>
</div>
- {{ if .Params.featured_image }}
+ {{ $featured_image := .Params.featured_image }}
+ {{ if $featured_image }}
<div class="post-item-image-wrapper">
<div class="post-item-image"
- style="background-image: url('{{.Params.featured_image}}')"></div>
+ style="background-image: url('{{$featured_image | relLangURL }}')"></div>
</div>
{{ end }}
</div>