Commit | Line | Data |
---|---|---|
e28a215c | 1 | {{/* |
2 | * Add the featured image to the header if it's present in the Front Matter | |
3 | */}} | |
50cea8ca | 4 | {{ if .IsPage }} |
44056311 | 5 | {{ with $.Params.featured_image }} |
3adfd28c | 6 | {{ with resources.Get . }} |
7 | <style media="screen"> | |
44056311 | 8 | #banner { |
3adfd28c | 9 | background-image: url( {{ .Permalink }} ); |
44056311 | 10 | } |
3adfd28c | 11 | </style> |
12 | {{ else }} | |
13 | {{ warnf "featured image not found: %s" . }} | |
14 | {{ end }} | |
50cea8ca | 15 | {{ end }} |
e28a215c | 16 | {{ end }} |