diff options
author | amazingrise <8315221+AmazingRise@users.noreply.github.com> | 2019-11-23 14:52:03 +0300 |
---|---|---|
committer | amazingrise <8315221+AmazingRise@users.noreply.github.com> | 2019-11-23 14:52:03 +0300 |
commit | 8799ffe2da642b82fa0984fb1a2060147109a207 (patch) | |
tree | f2edf632f4afae35aae48c9365834064695634c1 /layouts/index.html | |
parent | bc48c0bc62807239296493fc1a6428a177c381ec (diff) |
Fixed the issue caused by URL.
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 5 |
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> |