{{ if .Site.Params.showcaseDir }} {{ $showcasePosts := where site.RegularPages "Section" "in" .Site.Params.showcaseDir }} {{ range (sort $showcasePosts "File.LogicalName") }} {{ if in .Dir .Site.Params.showcaseDir }}