Use images instead of featuredImg

`featuredImg` and `bgImg` are preserved in case you want to use a different background image from metadata images
This commit is contained in:
Track3 2018-12-31 20:03:32 +08:00
parent f5b68c452f
commit 4b2192f2fa
6 changed files with 41 additions and 16 deletions

View file

@ -1,6 +1,10 @@
{{ define "main" }}
{{- with .Site.Params.bgImg }}
<div class="bg-img" style="background-image: url('{{ . }}')"></div>
{{- if .Site.Params.bgImg }}
<div class="bg-img" style="background-image: url({{.Site.Params.bgImg}});"></div>
{{- else if .Site.Params.images }}
{{- range first 1 .Site.Params.images }}
<div class="bg-img" style="background-image: url({{.}});"></div>
{{- end }}
{{- end }}
<div id="spotlight" class="animated fadeIn">
<div id="home-center">