From 8799ffe2da642b82fa0984fb1a2060147109a207 Mon Sep 17 00:00:00 2001 From: amazingrise <8315221+AmazingRise@users.noreply.github.com> Date: Sat, 23 Nov 2019 19:52:03 +0800 Subject: Fixed the issue caused by URL. --- layouts/index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'layouts/index.html') 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" }} - {{ if .Params.featured_image }} + {{ $featured_image := .Params.featured_image }} + {{ if $featured_image }}
+ style="background-image: url('{{$featured_image | relLangURL }}')">
{{ end }} -- cgit v1.2.3