feat: Ajout de 2 articles
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
{{ $imageSizeSmall := cond .IsHome "600x600 Top" "600x400 Center" }}
|
||||
{{ $imageSizeBig := cond .IsHome "1920x850 Top" "1920x450 Center" }}
|
||||
<header class="header{{ if .IsHome }} home{{ end }}">
|
||||
{{ $isBig := (default .IsHome .Params.big) }}
|
||||
{{ $imageSizeSmall := cond $isBig "600x600 Top" "600x400 Center" }}
|
||||
{{ $imageSizeBig := cond $isBig "1920x850 Top" "1920x450 Center" }}
|
||||
<header class="header{{ if $isBig }} home{{ end }}">
|
||||
{{ $headless := .Site.GetPage "/" }}
|
||||
{{ $image := default ($headless.Resources.GetMatch "*") (.Resources.GetMatch (default "*" .Params.image)) }}
|
||||
{{ if $image }}
|
||||
|
Reference in New Issue
Block a user