diff options
Diffstat (limited to 'layouts/partials/sections/home.html')
-rw-r--r-- | layouts/partials/sections/home.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/layouts/partials/sections/home.html b/layouts/partials/sections/home.html index 97557e9..a630222 100644 --- a/layouts/partials/sections/home.html +++ b/layouts/partials/sections/home.html @@ -1,9 +1,14 @@ {{ $params := .Site.Params.home }} {{ with .Site.Data.home }} <section id="home" +{{/* {{ with .background }} - style="background-image: url('{{ (printf "images/%s" .) | absURL }}');" + style="background-image: url('{{ (printf "images/%s" .) | absURL }}'); opacity: 50%;" {{ end }} +*/}} +{{- with .background -}} + style="--home-bkg-image: url('{{ (printf "images/%s" .) | absURL }}');" +{{- end -}} > <div class="header-content" style=" |