added various SVG and fixed display of footer and some shortcodes. Initial fix of...
[theme-danix.xyz.git] / layouts / partials / head-addition.html
index b298b5e..d2a43ec 100644 (file)
@@ -1,10 +1,15 @@
 {{/*
        * Add the featured image to the header if it's present in the Front Matter
        */}}
-{{ if isset .Params "featured_image" }}
-<style media="screen">
-       header#masthead {
-               background-image: url( {{ $.Params.featured_image | urlize }} );
-       }
-</style>
+{{ if .IsPage }}
+       {{ if isset .Params "featured_image" }}
+       <style media="screen">
+               #banner {
+                       background-image: url( {{ $.Params.featured_image | absURL }} );
+                       background-repeat: no-repeat;
+                       background-position: center center;
+                       background-attachment: fixed;
+               }
+       </style>
+       {{ end }}
 {{ end }}