39 lines
964 B
HTML
39 lines
964 B
HTML
{{- $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 -}}
|
|
|
|
<div class="spotlight-block {{ $spotlightClass }}">
|
|
{{- 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 -}}
|
|
</div>
|