Skip to content

Commit

Permalink
Add control over header image alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
miaucl authored Oct 11, 2024
1 parent 33178c0 commit 5d73390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/page-header.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ $featured_image := partial "func/GetFeaturedImage.html" . }}
{{ if $featured_image }}
{{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}}
<header class="cover bg-top" style="background-image: url('{{ $featured_image }}');">
<header class="cover bg-{{ .Params.featured_image_alignment | default "top" }}" style="background-image: url('{{ $featured_image }}');">
<div class="bg-black-60">
{{ partial "site-navigation.html" . }}
<div class="tc-l pv6 ph3 ph4-ns">
Expand Down

0 comments on commit 5d73390

Please sign in to comment.