feat: Ajout de 2 articles

This commit is contained in:
2021-01-19 23:52:52 +01:00
parent 0cf670ade9
commit 606bc67ce9
6 changed files with 53 additions and 5 deletions

View File

@ -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 }}