added all files from previous iterations
[theme-danix.xyz.git] / layouts / partials / head-addition.html
diff --git a/layouts/partials/head-addition.html b/layouts/partials/head-addition.html
new file mode 100644 (file)
index 0000000..b298b5e
--- /dev/null
@@ -0,0 +1,10 @@
+{{/*
+       * 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>
+{{ end }}