{{- $cards := slice -}} {{- with .Cards -}} {{- $cards = . -}} {{- end -}} {{- $feedPages := slice -}} {{- with .FeedPages -}} {{- $feedPages = . -}} {{- end -}} {{- $asideFirst := false -}} {{- with .AsideFirst -}} {{- $asideFirst = . -}} {{- end -}} {{- $showSection := false -}} {{- with .ShowSection -}} {{- $showSection = . -}} {{- end -}} {{- $spotlightClass := "spotlight" -}} {{- if $asideFirst -}} {{- $spotlightClass = printf "%s spotlight-aside-first" $spotlightClass -}} {{- end -}}
{{- if and $asideFirst (gt (len $feedPages) 0) -}} {{ partial "spotlight-feed.html" . }} {{- end -}} {{- range $cards -}} {{ partial "card.html" (dict "Page" . "ShowSection" $showSection "LinkSection" false "ShowMeta" false "ThumbnailSize" "spotlight") }} {{- end -}} {{- if and (not $asideFirst) (gt (len $feedPages) 0) -}} {{ partial "spotlight-feed.html" . }} {{- end -}}