diff --git a/layouts/persons/list.html b/layouts/persons/list.html index 611a00ff650ea357d4f9a56358482bd815242b8a..e43671cf654ae58124230cdbc544f9a52387b7fb 100644 --- a/layouts/persons/list.html +++ b/layouts/persons/list.html @@ -17,9 +17,15 @@ ) }} - {{ $chapo_block := gt (len .Params.blocks) 1 }} + {{ $chapo_block := false }} + {{ if .Params.blocks }} + {{ if gt (len .Params.blocks) 1 }} + {{ $chapo_block = true }} + {{ end }} + {{ end }} {{ partial "persons/chapo.html" (dict "context" . + "with_container" (not $chapo_block) "block_wrapped" $chapo_block ) }}