Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/2-REC/hugo-myportfolio-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/sections/home.html')
-rw-r--r--layouts/partials/sections/home.html7
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="