{{ $sectionID := replace (lower .section.name) " " "-" }} {{ if .section.id }} {{ $sectionID = .section.id }} {{ end }} {{ return $sectionID }}