mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 00:52:43 +00:00
Add control over header image alignment
This commit is contained in:
parent
33178c0d49
commit
5d7339037b
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user