forked from Bunteshaus/bunteshaus.de
13 lines
585 B
HTML
13 lines
585 B
HTML
|
{{ $title := .Title }}
|
||
|
{{ $title = singularize $title }}
|
||
|
{{ $title = i18n $title }}
|
||
|
{{ if not $title }}
|
||
|
{{ $title = .Title }}
|
||
|
{{ end }}
|
||
|
|
||
|
{{ $img := resources.Get "/images/banner/banner_1.jpg" }}
|
||
|
{{ if .Resources.Match "banner*" }}
|
||
|
{{ $img = (.Resources.GetMatch "banner*") }}
|
||
|
{{ end }}
|
||
|
<div style="background-image:linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url({{- $img.Permalink -}}); background-size: cover; min-height: 33vh; display: flex; justify-content: center; align-items: center;"><h1 style="font-size: 350%; color: white;">{{ $title }}</h1></div>
|