fixed image display for articles without a featured image
[theme-danix.xyz.git] / layouts / partials / head-addition.html
CommitLineData
e28a215c 1{{/*
2 * Add the featured image to the header if it's present in the Front Matter
3 */}}
50cea8ca 4{{ if .IsPage }}
5 {{ if isset .Params "featured_image" }}
6 <style media="screen">
c2ea6701 7 #banner {
50cea8ca 8 background-image: url( {{ $.Params.featured_image | absURL }} );
50cea8ca 9 }
10 </style>
11 {{ end }}
e28a215c 12{{ end }}