diff options
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r-- | layouts/_default/single.html | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index a00bc3b..900b3f7 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,15 +1,11 @@ {{ define "head" }} - <style> - .bg-img {background-image: url(' - {{- if .Params.featuredImg -}} - {{.Params.featuredImg | absURL}} + {{ if .Params.featuredImg -}} + <style>.bg-img {background-image: url('{{.Params.featuredImg | absURL}}');}</style> {{- else if .Params.images -}} {{- range first 1 .Params.images -}} - {{. | absURL}} + <style>.bg-img {background-image: url('{{. | absURL}}');}</style> {{- end -}} {{- end -}} - ');} - </style> {{ end }} {{ define "header" }} |