-{{ if isset .Params "featured_image" }}
-<style media="screen">
- header#masthead {
- height: 60vh;
- background-image: url( {{ $.Params.featured_image | absURL }} );
- background-repeat: no-repeat;
- background-position: center center;
- background-attachment: fixed;
- }
-</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 }}