{{ $context := . }} {{ $contents := .Params.contents }} {{- if $contents -}} {{ $collapsed_started := false }} {{ $is_last_content := false }}