{{- $title := "" }} {{- $subtitle := "" }} {{- $bigimg := slice }} {{- $headerImgStyle := "big" }} {{- $thumbs := slice }} {{- $contentColClass := cond .Params.fullWidth "col-12" "col-md-10 offset-md-1" }} {{- $mainSections := default (slice "post" "posts") site.Params.mainSections }} {{- $isMainContent := in $mainSections .Type }} {{ if .IsHome }} {{- $title = .Site.Params.homeTitle | default .Site.Title }} {{- $subtitle = .Site.Params.subtitle }} {{- $bigimg = .Site.Params.bigimg }} {{- $headerImgStyle = .Site.Params.headerImgStyle | default "big" }} {{- $thumbs = .Site.Params.thumb }} {{ else }} {{- $title = .Title }} {{- $subtitle = .Params.subtitle }} {{- $bigimg = .Params.bigimg }} {{- $headerImgStyle = .Params.headerImgStyle | default "big" }} {{ end }} {{ if or (or $bigimg $title) $thumbs }} {{ if $bigimg }}
{{ end }}
{{ if $thumbs }}
{{range $thumbs}}
{{ if .desc }}

{{ .desc }}

{{end}}
{{ end }}

{{ end }} {{ if $bigimg }} {{- $firstimg := index $bigimg 0 }}

{{ with $title }}{{.}}{{ else }}
{{ end }}

{{ if not $isMainContent }}
{{ end }} {{ partial "header-subtitle.html" (dict "Context" . "Subtitle" $subtitle) }} {{ if $isMainContent }} {{ partial "post_meta.html" . }} {{ end }}
{{$firstimg.desc}}
{{end}} {{ if and $title (not $thumbs) }}
{{ if $bigimg }} {{ with $title }}{{.}}{{ else }}
{{ end }}
{{ else }} {{ if eq .Type "list" }}

{{ if .Data.Singular }}#{{ end }}{{ .Title }}

{{ else }}

{{ with $title }}{{.}}{{ else }}
{{ end }}

{{ end }} {{ end }} {{ if not $isMainContent }}
{{ end }} {{ partial "header-subtitle.html" (dict "Context" . "Subtitle" $subtitle) }} {{ if $isMainContent }} {{ partial "post_meta.html" . }} {{ end }}
{{ end }} {{ partial "header_custom.html" . }}
{{ else }}
{{ end }}