danix
's git repository
home
/
my projects
/
theme-danix.xyz.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
40ac3a09c9b80d03bf6eadcf82a0965837bb47e7
[theme-danix.xyz.git]
/
layouts
/
partials
/
head-addition.html
1
{{/*
2
* Add the featured image to the header if it's present in the Front Matter
3
*/}}
4
{{ if .IsPage }}
5
{{ with $.Params.featured_image }}
6
{{ $source := $.Params.featured_image }}
7
{{ $image := resources.Get $source }}
8
<style
media
=
"screen"
>
9
#banner {
10
background-image: url( {{ $image.Permalink }} );
11
}
12
</style>
13
{{ end }}
14
{{ end }}