Skip to content

Commit

Permalink
Allow header image in assets
Browse files Browse the repository at this point in the history
  • Loading branch information
ilja-radusch committed Mar 29, 2024
1 parent c3dd659 commit af203e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<!-- Welcome screen that scrolls out of view -->
{{ if not .Params.header_use_video }}
<header id="site-head" class="withCenteredImage" {{ with .Params.header_image }}style="background-image: url({{ . | relURL}})"{{ end }}>
<header id="site-head" class="withCenteredImage" {{ with resources.Get .Params.header_image }}style="background-image: url({{ .RelPermalink }})"{{ end }}>
{{ else }}
<header id="site-head">
{{ end }}
Expand Down

0 comments on commit af203e4

Please sign in to comment.