From 4b2192f2fa89f10d09fabc48105465865ef01943 Mon Sep 17 00:00:00 2001 From: Track3 Date: Mon, 31 Dec 2018 20:03:32 +0800 Subject: Use `images` instead of `featuredImg` `featuredImg` and `bgImg` are preserved in case you want to use a different background image from metadata images --- layouts/index.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'layouts/index.html') diff --git a/layouts/index.html b/layouts/index.html index c9047e5..8a2f798 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,6 +1,10 @@ {{ define "main" }} - {{- with .Site.Params.bgImg }} -
+ {{- if .Site.Params.bgImg }} +
+ {{- else if .Site.Params.images }} + {{- range first 1 .Site.Params.images }} +
+ {{- end }} {{- end }}
-- cgit v1.2.3