{{ if $.Param "enableSidebar" }} {{ $currentSection := .Section }} {{ $currentID := "" }} {{ with .File }}{{ $currentID = .UniqueID }}{{ end }}