caper3 | changes to layout

This commit is contained in:
Don Harper 2021-02-24 20:33:31 -06:00
parent 57089e42ce
commit e3e649a34b
2 changed files with 3 additions and 4 deletions

View file

@ -3,7 +3,6 @@
{{ define "main" }}
<header class="site-home-header">
{{ .Scratch.Set "background" .Params.feature_image }}
{{- partial "header-background.html" . -}}
<div class="inner">
{{- partial "site-nav.html" . -}}
@ -33,4 +32,4 @@
</div>
</main>
{{ end }}
{{ end }}

View file

@ -1,7 +1,7 @@
{{ if .Scratch.Get "background" }}
{{ if $.Site.Params.cover }}
<style type="text/css">
.responsive-header-img {
background-image: url('{{ .Scratch.Get "background" }}');
background-image: url('{{ $.Site.Params.cover }}');
}
</style>
<div class="outer site-header-background responsive-header-img">