From 1e17ccb8012d9ff48ceba737e49ec5e5444247d6 Mon Sep 17 00:00:00 2001 From: Track3 Date: Tue, 1 Jan 2019 17:53:20 +0800 Subject: Remove inline style and script of bg-img * See #22 --- layouts/index.html | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'layouts/index.html') diff --git a/layouts/index.html b/layouts/index.html index 0535cbb..7927023 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,10 +1,20 @@ +{{ define "head" }} + +{{ end }} + {{ define "main" }} - {{- if .Site.Params.bgImg }} -
- {{- else if .Site.Params.images }} - {{- range first 1 .Site.Params.images }} -
- {{- end }} + {{- if (or .Site.Params.images .Site.Params.bgImg) }} +
{{- end }}
-- cgit v1.2.3