{{ $start := time .Params.startDate }} {{ $end := time .Params.endDate | default $start }} {{ $isCurrent := and (le $start now) (ge $end now) }} {{ return $isCurrent }}