aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials/hero.html
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-10-15 15:45:53 +0200
committerOscar Najera <hi@oscarnajera.com>2023-10-15 16:12:14 +0200
commitbd924ee52abf96ef3f6352b7b2926d9900ae5ff9 (patch)
tree41351e887478db5f5a0fc3702e24449d999d41e0 /layouts/partials/hero.html
parentd0200f3f07604edab12d647838feebfd82423f67 (diff)
downloadhugo-minimalist-theme-bd924ee52abf96ef3f6352b7b2926d9900ae5ff9.tar.gz
hugo-minimalist-theme-bd924ee52abf96ef3f6352b7b2926d9900ae5ff9.tar.bz2
hugo-minimalist-theme-bd924ee52abf96ef3f6352b7b2926d9900ae5ff9.zip
Hero background gradient and post images default
Feature image has precedence Can have svg feature images. That implies container must have max width
Diffstat (limited to 'layouts/partials/hero.html')
-rw-r--r--layouts/partials/hero.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/layouts/partials/hero.html b/layouts/partials/hero.html
index 4729291..1926f04 100644
--- a/layouts/partials/hero.html
+++ b/layouts/partials/hero.html
@@ -1,5 +1,9 @@
-<div style="background: linear-gradient( rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.5) ){{ with .Params.images }}, url('{{ index . 0 }}'){{ end }}; background-position: center;"
- class="bg-center pv5" >
+<div
+ style="background: linear-gradient( rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.15) ){{ with resources.Get (index .Params.images 0) }}
+ , url('{{ .RelPermalink }}')
+ {{ end }}; background-position: center;"
+ class="pv5"
+>
<div class="mw7 center ph2 near-white">
<h1 class="f1 tc title berkshire-swash">{{ .Title }}</h1>
{{ .Content }}